mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-15 15:41:24 +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;
|
len = buflen - 1;
|
||||||
}
|
}
|
||||||
stream_getBytes( stream, buf, len );
|
stream_getBytes( stream, buf, len );
|
||||||
buf[len] = '\0';
|
|
||||||
}
|
}
|
||||||
|
buf[len] = '\0';
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue