Changed the condition so it also works in case when sscanf returns EOF.
This commit is contained in:
parent
becb9a353b
commit
0c86432ea5
|
@ -1086,7 +1086,7 @@ static struct key *load_key( struct key *base, const char *buffer, unsigned int
|
|||
file_read_error( "Malformed key", info );
|
||||
return NULL;
|
||||
}
|
||||
if (!sscanf( buffer + res, " %d", &modif )) modif = time(NULL);
|
||||
if (sscanf( buffer + res, " %d", &modif ) != 1) modif = time(NULL);
|
||||
|
||||
p = (WCHAR *)info->tmp;
|
||||
while (prefix_len && *p) { if (*p++ == '\\') prefix_len--; }
|
||||
|
|
Loading…
Reference in New Issue