diff options
author | dott <dott@bob> | 2018-11-14 06:07:59 +0100 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2018-11-24 00:26:09 +0100 |
commit | 3f267d0473b1e34c858edac334e17bf48c0c407d (patch) | |
tree | 08e4b58bf7d7a15c25ceeab38afada5587b876eb /src | |
parent | e3ca60eefe08b253ff436fe16d85b4317c7a2523 (diff) | |
download | calcurse-3f267d0473b1e34c858edac334e17bf48c0c407d.tar.gz calcurse-3f267d0473b1e34c858edac334e17bf48c0c407d.zip |
Fix priority parsing in iCal imports
Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ical.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1087,7 +1087,7 @@ ical_read_todo(FILE * fdi, FILE * log, unsigned *notodos, unsigned *noskipped, } if (starts_with_ci(buf, "PRIORITY:")) { - sscanf(buf, "%d", &vtodo.priority); + sscanf(buf, "PRIORITY:%d\n", &vtodo.priority); if (vtodo.priority < 0 || vtodo.priority > 9) { ical_log(log, ICAL_VTODO, ITEMLINE, _("item priority is invalid " |