Fix up fscanf() format strings

All members of the tm structure are signed integers. Stick to using the
correct fscanf() format specifiers for these.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2012-02-19 03:14:31 +01:00
parent 2702a61b0e
commit 2bc4deacdc
2 changed files with 4 additions and 4 deletions

View File

@@ -1019,7 +1019,7 @@ recur_exc_scan (llist_t *lexc, FILE *data_file)
while ((c = getc (data_file)) == '!')
{
ungetc (c, data_file);
if (fscanf (data_file, "!%u / %u / %u ",
if (fscanf (data_file, "!%d / %d / %d ",
&day.tm_mon, &day.tm_mday, &day.tm_year) != 3)
{
EXIT (_("syntax error in item date"));