@@ -1,3 +1,8 @@
+2008-09-14 Guillem Jover <guillem@debian.org>
+
+ * libcompat/vsnprintf.c (vsnprintf): Use '\0' instead of NULL to
+ terminate the string.
2008-09-14 Guillem Jover <guillem@debian.org>
* libcompat/compat.h (unsetenv): Change return type from void to int.
@@ -70,7 +70,7 @@ vsnprintf(char *buf, size_t maxsize, const char *fmt, va_list al)
nr = fread(buf, 1, want - 1, file);
if (nr != want - 1)
return -1;
- buf[want] = NULL;
+ buf[want] = '\0';
return retval;
}