From 6bbf3e5f2e6777feeaf19e42d9c8bb5b2da0a428 Mon Sep 17 00:00:00 2001 From: Frederic Culot Date: Tue, 16 Jan 2007 07:49:54 +0000 Subject: use of getstring() defines --- src/todo.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/todo.c') 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); -- cgit v1.2.3-54-g00ecf