Correzione nella TRectype::putfield(): dimensionata la stringa del
valore da scrivere sul record onde evitare fastidiosi GPF nel caso il campo sia inesistente. git-svn-id: svn://10.65.10.50/trunk@3061 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3d7b76edcb
commit
d1b5226761
@ -2870,7 +2870,7 @@ void TRectype::put(const char* fieldname, char val)
|
||||
void TRectype::put(const char* fieldname, bool val)
|
||||
|
||||
{
|
||||
char* s = val ? "T" : "F";
|
||||
char s[2] = { val ? 'T' : 'F', '\0'};
|
||||
if (CPutFieldBuff((char*) fieldname, rec_des(), s, _rec) == FIELDERR)
|
||||
UNKNOWN_FIELD(num(), fieldname);
|
||||
setempty(FALSE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user