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:
parent
728baa9c81
commit
c92db223cd
@ -127,12 +127,12 @@ void BuildKey()
|
||||
|
||||
void DecodeString(char* data)
|
||||
{
|
||||
char __tmp_string[256];
|
||||
char tmp[256];
|
||||
BuildKey();
|
||||
for (int i = 0; data[i]; i++)
|
||||
__tmp_string[i] = data[i] - (i < 8 ? key[i] : __tmp_string[i - 8]);
|
||||
__tmp_string[i] = '\0';
|
||||
strcpy(data, __tmp_string);
|
||||
tmp[i] = data[i] - (i < 8 ? key[i] : tmp[i - 8]);
|
||||
tmp[i] = '\0';
|
||||
strcpy(data, tmp);
|
||||
}
|
||||
|
||||
int ThisYear()
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include <applicat.h>
|
||||
#include <config.h>
|
||||
#include <dongle.h>
|
||||
//#include <os_dep.h>
|
||||
#include <scanner.h>
|
||||
#include <utility.h>
|
||||
|
||||
|
@ -146,18 +146,20 @@ void TQuery_application::main_loop()
|
||||
const char* head(const TRectype& r, const char* name,
|
||||
const char* title)
|
||||
{
|
||||
if (title == NULL) title = name;
|
||||
|
||||
if (title == NULL)
|
||||
title = name;
|
||||
TString& tmp = get_tmp_string();
|
||||
if (r.exist(name))
|
||||
{
|
||||
TString h(r.length(name));
|
||||
h.spaces();
|
||||
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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user