From 4ada3deda275ca26a1f809af87a6e81d7920c07c Mon Sep 17 00:00:00 2001
From: Lukas Fleischer <lfleischer@calcurse.org>
Date: Fri, 5 Feb 2016 16:43:39 +0100
Subject: Fix %(hash) formatting of events

Actually print the hash instead of raw object data.

Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
---
 src/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/utils.c b/src/utils.c
index a5e1196..a6ccec9 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -1511,9 +1511,9 @@ static void print_event_helper(const char *format, long day, struct event *ev,
 				break;
 			case FS_HASH:
 				if (rev)
-					printf("%s", recur_event_tostr(rev));
+					printf("%s", recur_event_hash(rev));
 				else
-					printf("%s", event_tostr(ev));
+					printf("%s", event_hash(ev));
 				break;
 			case FS_EOF:
 				return;
-- 
cgit v1.2.3-70-g09d2