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