tagfile: Allow the specification of an undefined length string in a definition file by
making the defined length zero. git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3281 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
39750cec9c
commit
37260b7c2e
|
@ -1249,7 +1249,7 @@ bool tagWriteString(element_t tag, const char *buffer)
|
||||||
|
|
||||||
// find size of string
|
// find size of string
|
||||||
size = strlen(buffer) + 1;
|
size = strlen(buffer) + 1;
|
||||||
if (size > current->vm)
|
if (size > current->vm && current->vm != 0)
|
||||||
{
|
{
|
||||||
TF_ERROR("Given string is too long (size %d > limit %d)", (int)size, (int)current->vm);
|
TF_ERROR("Given string is too long (size %d > limit %d)", (int)size, (int)current->vm);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue