diff --git a/common/strutils.c b/common/strutils.c index 56c3155a6..bb1c5aca2 100644 --- a/common/strutils.c +++ b/common/strutils.c @@ -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; }