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-861f7616d084
master
Per Inge Mathisen 2007-12-31 17:38:04 +00:00
parent 39750cec9c
commit 37260b7c2e
1 changed files with 1 additions and 1 deletions

View File

@ -1249,7 +1249,7 @@ bool tagWriteString(element_t tag, const char *buffer)
// find size of string
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);
return false;