buf sizes in version.c

there were some 'sizeof buf' on a passed pointer variable buf.
pass the actual buffer size in a second argument.
This commit is contained in:
nhmall
2022-05-12 19:38:50 -04:00
parent 0e83e15d6b
commit fe5cb1011f
3 changed files with 15 additions and 14 deletions

View File

@@ -762,7 +762,7 @@ dump_everything(
it's conceivable that the game started with a different
build date+time or even with an older nethack version,
but we only have access to the one it finished under */
putstr(0, 0, getversionstring(pbuf));
putstr(0, 0, getversionstring(pbuf, sizeof pbuf));
putstr(0, 0, "");
/* game start and end date+time to disambiguate version date+time */