Patch level : 2.0 nopatch

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :

Eliminata __tmp_string da tutti i programmi della base.
Ora non dovrebbe rimanerne traccia in nessun modulo.


git-svn-id: svn://10.65.10.50/trunk@11063 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2003-04-24 13:49:54 +00:00
parent 728baa9c81
commit c92db223cd
3 changed files with 11 additions and 10 deletions

View File

@ -127,12 +127,12 @@ void BuildKey()
void DecodeString(char* data) void DecodeString(char* data)
{ {
char __tmp_string[256]; char tmp[256];
BuildKey(); BuildKey();
for (int i = 0; data[i]; i++) for (int i = 0; data[i]; i++)
__tmp_string[i] = data[i] - (i < 8 ? key[i] : __tmp_string[i - 8]); tmp[i] = data[i] - (i < 8 ? key[i] : tmp[i - 8]);
__tmp_string[i] = '\0'; tmp[i] = '\0';
strcpy(data, __tmp_string); strcpy(data, tmp);
} }
int ThisYear() int ThisYear()

View File

@ -1,7 +1,6 @@
#include <applicat.h> #include <applicat.h>
#include <config.h> #include <config.h>
#include <dongle.h> #include <dongle.h>
//#include <os_dep.h>
#include <scanner.h> #include <scanner.h>
#include <utility.h> #include <utility.h>

View File

@ -146,18 +146,20 @@ void TQuery_application::main_loop()
const char* head(const TRectype& r, const char* name, const char* head(const TRectype& r, const char* name,
const char* title) const char* title)
{ {
if (title == NULL) title = name; if (title == NULL)
title = name;
TString& tmp = get_tmp_string();
if (r.exist(name)) if (r.exist(name))
{ {
TString h(r.length(name)); TString h(r.length(name));
h.spaces(); h.spaces();
h.overwrite(title, 0); h.overwrite(title, 0);
strcpy(__tmp_string, h); tmp = h;
} }
else strcpy(__tmp_string, title); else
tmp = title;
return __tmp_string; return tmp;
} }
bool TQuery_application::do_query() bool TQuery_application::do_query()