aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrederic Culot <calcurse@culot.org>2006-11-02 13:43:10 +0000
committerFrederic Culot <calcurse@culot.org>2006-11-02 13:43:10 +0000
commit3ee9a76130295b451603290df04fdb2512ef8614 (patch)
treefbc4a048bc90f0478297d29e07e9ee359a894ede /src
parent725c1b1030de7dcdfcd0eda78df75408efa4973b (diff)
downloadcalcurse-3ee9a76130295b451603290df04fdb2512ef8614.tar.gz
calcurse-3ee9a76130295b451603290df04fdb2512ef8614.zip
calls to getstring() updated
Diffstat (limited to 'src')
-rwxr-xr-xsrc/recur.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/recur.c b/src/recur.c
index 6b87d59..4bff8db 100755
--- a/src/recur.c
+++ b/src/recur.c
@@ -1,4 +1,4 @@
-/* $calcurse: recur.c,v 1.15 2006/10/28 10:34:33 culot Exp $ */
+/* $calcurse: recur.c,v 1.16 2006/11/02 13:43:10 culot Exp $ */
/*
* Calcurse - text-based organizer
@@ -562,7 +562,7 @@ void recur_repeat_item(int sel_year, int sel_month, int sel_day,
while (freq == 0) {
status_mesg(mesg_freq_1, "");
- if (getstring(swin, colr, user_input, 0, 1) == 0) {
+ if (getstring(swin, colr, user_input, MAX_LENGTH, 0, 1) == 0) {
freq = atoi(user_input);
if (freq == 0) {
status_mesg(mesg_wrong_freq, wrong_type_2);
@@ -576,7 +576,7 @@ void recur_repeat_item(int sel_year, int sel_month, int sel_day,
while (!date_entered) {
status_mesg(mesg_until_1, "");
- if (getstring(swin, colr, user_input, 0, 1) == 0) {
+ if (getstring(swin, colr, user_input, 11, 0, 1) == 0) {
if (strlen(user_input) == 1 &&
strncmp(user_input, "0", 1) == 0 ) {
until = 0;