X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/halibut/blobdiff_plain/d7482997dd1ca71b70df43c15dd5956f435a1a7e..8f664e7e91c918cd13248f6b684580c4dd2cdb31:/biblio.c 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) {