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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user