From 3f267d0473b1e34c858edac334e17bf48c0c407d Mon Sep 17 00:00:00 2001
From: dott <dott@bob>
Date: Wed, 14 Nov 2018 06:07:59 +0100
Subject: Fix priority parsing in iCal imports

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
---
 src/ical.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src')

diff --git a/src/ical.c b/src/ical.c
index 95fef51..b5c915a 100644
--- a/src/ical.c
+++ b/src/ical.c
@@ -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 "
-- 
cgit v1.2.3-70-g09d2