aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-12-15 15:31:46 +0000
committerFrederic Culot <calcurse@culot.org>2006-12-15 15:31:46 +0000
commitfde2d7b01d39bc3d8a3e62b60c23d20c0c7399cb (patch)
tree4583140e0d829d4211a47f1dd3e0b314fde3833a
parent6da1452a0f4baecde86bd1a21d908105ba895975 (diff)
downloadcalcurse-fde2d7b01d39bc3d8a3e62b60c23d20c0c7399cb.tar.gz
calcurse-fde2d7b01d39bc3d8a3e62b60c23d20c0c7399cb.zip
bugfix in array sizes in load-todo()
-rwxr-xr-xsrc/io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index 071b173..aca6419 100755
--- a/src/io.c
+++ b/src/io.c
@@ -1,4 +1,4 @@
-/* $calcurse: io.c,v 1.7 2006/09/15 15:43:03 culot Exp $ */
+/* $calcurse: io.c,v 1.8 2006/12/15 15:31:46 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -410,7 +410,7 @@ load_todo(int colr)
char *nl;
int nb_tod = 0;
int c, id;
- char buf[100], e_todo[100];
+ char buf[MAX_LENGTH], e_todo[MAX_LENGTH];
data_file = fopen(path_todo, "r");
if (data_file == NULL) {