aboutsummaryrefslogtreecommitdiffstats
path: root/src/apoint.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2009-05-22 19:59:17 +0000
committerFrederic Culot <calcurse@culot.org>2009-05-22 19:59:17 +0000
commit3f6aff84e65e7650f7110768646b86ece6b4dc8f (patch)
treee6fe92b787c413f7e005eda32050acd5b76cceef /src/apoint.c
parentbb586b92b5714d1f33da2518206c364146de081b (diff)
downloadcalcurse-3f6aff84e65e7650f7110768646b86ece6b4dc8f.tar.gz
calcurse-3f6aff84e65e7650f7110768646b86ece6b4dc8f.zip
The buffer should be allocated dynamically, but I am quite busy right now :'( Anyway, thanks Kamil for feedback
Diffstat (limited to 'src/apoint.c')
-rwxr-xr-xsrc/apoint.c6
1 files changed, 3 insertions, 3 deletions
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';