aboutsummaryrefslogtreecommitdiffstats
path: root/src/todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/todo.c')
-rwxr-xr-xsrc/todo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/todo.c b/src/todo.c
index f1d4416..177f943 100755
--- a/src/todo.c
+++ b/src/todo.c
@@ -1,4 +1,4 @@
-/* $calcurse: todo.c,v 1.10 2007/03/10 15:54:59 culot Exp $ */
+/* $calcurse: todo.c,v 1.11 2007/04/04 19:38:18 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -43,10 +43,10 @@ todo_new_item(int total)
char *mesg = _("Enter the new ToDo item : ");
char *mesg_id =
_("Enter the ToDo priority [1 (highest) - 9 (lowest)] :");
- char todo_input[MAX_LENGTH] = "";
+ char todo_input[BUFSIZ] = "";
status_mesg(mesg, "");
- if (getstring(swin, todo_input, MAX_LENGTH, 0, 1) ==
+ if (getstring(swin, todo_input, BUFSIZ, 0, 1) ==
GETSTRING_VALID) {
while ( (ch < '1') || (ch > '9') ) {
status_mesg(mesg_id, "");
@@ -149,7 +149,7 @@ int
todo_chg_priority(int action, int item_num)
{
struct todo_s *backup;
- char backup_mesg[MAX_LENGTH];
+ char backup_mesg[BUFSIZ];
int backup_id;
int do_chg = 1, new_position;