summaryrefslogtreecommitdiffstats
path: root/src/todo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/todo.c')
-rwxr-xr-xsrc/todo.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/todo.c b/src/todo.c
index d146824..2a5a00c 100755
--- a/src/todo.c
+++ b/src/todo.c
@@ -1,8 +1,8 @@
-/* $calcurse: todo.c,v 1.8 2006/12/15 15:25:50 culot Exp $ */
+/* $calcurse: todo.c,v 1.9 2007/01/16 07:52:29 culot Exp $ */
/*
* Calcurse - text-based organizer
- * Copyright (c) 2004-2006 Frederic Culot
+ * Copyright (c) 2004-2007 Frederic Culot
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -45,7 +45,8 @@ int todo_new_item(int total, int colr)
char todo_input[MAX_LENGTH] = "";
status_mesg(mesg, "");
- if (getstring(swin, colr, todo_input, MAX_LENGTH, 0, 1) == 0) {
+ if (getstring(swin, colr, todo_input, MAX_LENGTH, 0, 1) ==
+ GETSTRING_VALID) {
while ( (ch < '1') || (ch > '9') ) {
status_mesg(mesg_id, "");
ch = wgetch(swin);