Add an error check for correct formatting in Deflate uncompressed
[sgt/halibut] / biblio.c
index de0b925..7ce163d 100644 (file)
--- a/biblio.c
+++ b/biblio.c
@@ -7,7 +7,7 @@
 
 static wchar_t *gentext(int num) {
     wchar_t text[22];
-    wchar_t *p = text + sizeof(text);
+    wchar_t *p = text + lenof(text);
     *--p = L'\0';
     *--p = L']';
     while (num != 0) {