diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-02-19 03:14:31 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-02-19 03:14:31 +0100 |
commit | 2bc4deacdc634d80cf555dabea05fc16026b6bc4 (patch) | |
tree | e474c8349b2037ed56ccfa5ca87d77eac2320f45 /src/recur.c | |
parent | 2702a61b0e22ddcbd0b23c1765fac90fe766802a (diff) | |
download | calcurse-2bc4deacdc634d80cf555dabea05fc16026b6bc4.zip |
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>
Diffstat (limited to 'src/recur.c')
-rw-r--r-- | src/recur.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/recur.c b/src/recur.c index 79046f8..5fb30b9 100644 --- a/src/recur.c +++ b/src/recur.c @@ -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")); |