bug: even empty strings need to be terminated.

This commit is contained in:
ehouse 2006-09-23 16:05:41 +00:00
parent 402b6c1c6f
commit 12fec52152

View file

@ -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;
}