summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--biblio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/biblio.c b/biblio.c
index de0b925..7ce163d 100644
--- 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) {