mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-27 09:58:45 +01:00
bug: even empty strings need to be terminated.
This commit is contained in:
parent
402b6c1c6f
commit
12fec52152
1 changed files with 1 additions and 1 deletions
|
@ -122,8 +122,8 @@ stringFromStreamHere( XWStreamCtxt* stream, XP_UCHAR* buf, XP_U16 buflen )
|
|||
len = buflen - 1;
|
||||
}
|
||||
stream_getBytes( stream, buf, len );
|
||||
buf[len] = '\0';
|
||||
}
|
||||
buf[len] = '\0';
|
||||
return len;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue