summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-12-13 09:32:22 +0000
committerFrederic Culot <calcurse@culot.org>2006-12-13 09:32:22 +0000
commit86dbf7b63d23ceb27e1c8c3d15c47d4c1dcb78e1 (patch)
tree3f79f0e4656d86dbc8664ee9f1246c1046e533e0 /src
parentcf5ae67eb832aecc8f90ed3173cdd0da56184590 (diff)
downloadcalcurse-86dbf7b63d23ceb27e1c8c3d15c47d4c1dcb78e1.zip
bugfix: call to getstring() corrected in todo_new_item()
Diffstat (limited to 'src')
-rwxr-xr-xsrc/todo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/todo.c b/src/todo.c
index 627571f..5efa076 100755
--- a/src/todo.c
+++ b/src/todo.c
@@ -1,4 +1,4 @@
-/* $calcurse: todo.c,v 1.6 2006/11/02 13:43:36 culot Exp $ */
+/* $calcurse: todo.c,v 1.7 2006/12/13 09:32:22 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -45,7 +45,7 @@ int todo_new_item(int total, int colr)
char todo_input[MAX_LENGTH] = "";
status_mesg(mesg, "");
- if (getstring(swin, colr, todo_input, 2, 0, 1) == 0) {
+ if (getstring(swin, colr, todo_input, MAX_LENGTH, 0, 1) == 0) {
while ( (ch < '1') || (ch > '9') ) {
status_mesg(mesg_id, "");
ch = wgetch(swin);