mirror of
https://salsa.debian.org/dskoll/remind.git
synced 2026-04-17 06:48:47 +02:00
Proper fix for overflow.
This commit is contained in:
@@ -757,7 +757,7 @@ static void DumpSysVar(char const *name, const SysVar *v)
|
||||
if (!v && !name) return; /* Shouldn't happen... */
|
||||
|
||||
buffer[0]='$'; buffer[1] = 0;
|
||||
if (strlen(name) > VAR_NAME_LEN) {
|
||||
if (name && strlen(name) > VAR_NAME_LEN) {
|
||||
fprintf(ErrFp, "$%s: Name too long\n", name);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user