From 24968886824da7d4af308a113d550f4dc97bba48 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Wed, 4 Apr 2007 19:38:18 +0000 Subject: MAX_LENGTH replaced by stdio.h's BUFSIZ --- src/todo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/todo.c') 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; -- cgit v1.2.3