From 3f6aff84e65e7650f7110768646b86ece6b4dc8f Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Fri, 22 May 2009 19:59:17 +0000 Subject: The buffer should be allocated dynamically, but I am quite busy right now :'( Anyway, thanks Kamil for feedback --- src/apoint.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/apoint.c') diff --git a/src/apoint.c b/src/apoint.c index e0308c2..c1f8736 100755 --- a/src/apoint.c +++ b/src/apoint.c @@ -1,4 +1,4 @@ -/* $calcurse: apoint.c,v 1.33 2009/01/03 21:32:11 culot Exp $ */ +/* $calcurse: apoint.c,v 1.34 2009/05/22 19:59:17 culot Exp $ */ /* * Calcurse - text-based organizer @@ -462,14 +462,14 @@ apoint_write (apoint_llist_node_t *o, FILE *f) apoint_llist_node_t * apoint_scan (FILE *f, struct tm start, struct tm end, char state, char *note) { - char buf[MESG_MAXSIZE], *newline; + char buf[BUFSIZ], *newline; time_t tstart, tend, t; t = time (NULL); (void)localtime (&t); /* Read the appointment description */ - (void)fgets (buf, MESG_MAXSIZE, f); + (void)fgets (buf, sizeof buf, f); newline = strchr (buf, '\n'); if (newline) *newline = '\0'; -- cgit v1.2.3-54-g00ecf