summaryrefslogtreecommitdiff
path: root/src/todo.c
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2007-01-16 07:49:54 +0000
committerFrederic Culot <calcurse@culot.org>2007-01-16 07:49:54 +0000
commit6bbf3e5f2e6777feeaf19e42d9c8bb5b2da0a428 (patch)
tree952621a0090505b0502db07201f04bffbf15aee1 /src/todo.c
parent23e729651bf50a468afef469eaea3ef0e7544b64 (diff)
downloadcalcurse-6bbf3e5f2e6777feeaf19e42d9c8bb5b2da0a428.zip
use of getstring() defines
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);