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

@@ -3005,8 +3005,8 @@ extern void vault_gd_watching(unsigned int);
/* ### version.c ### */
extern char *version_string(char *);
extern char *getversionstring(char *);
extern char *version_string(char *, size_t bufsz);
extern char *getversionstring(char *, size_t bufsz);
extern int doversion(void);
extern int doextversion(void);
#ifdef MICRO