diff options
author | jkh <jkh@FreeBSD.org> | 1996-04-28 02:13:07 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1996-04-28 02:13:07 +0000 |
commit | 87634a8e4d491f936c98dc09903764bef2a2cc76 (patch) | |
tree | 3af216f2a509d8fc560a59f3fd8891a7ac065b7b /gnu/lib/libdialog | |
parent | 757f0d4140ba92ac2ff7e00fc840bf99ecee5f21 (diff) | |
download | FreeBSD-src-87634a8e4d491f936c98dc09903764bef2a2cc76.zip FreeBSD-src-87634a8e4d491f936c98dc09903764bef2a2cc76.tar.gz |
Fix the OK/Cancel accellerator bogon I introduced a few days back.
Diffstat (limited to 'gnu/lib/libdialog')
-rw-r--r-- | gnu/lib/libdialog/checklist.c | 2 | ||||
-rw-r--r-- | gnu/lib/libdialog/menubox.c | 2 | ||||
-rw-r--r-- | gnu/lib/libdialog/radiolist.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/gnu/lib/libdialog/checklist.c b/gnu/lib/libdialog/checklist.c index 0e8e419..bc6bcba 100644 --- a/gnu/lib/libdialog/checklist.c +++ b/gnu/lib/libdialog/checklist.c @@ -214,7 +214,7 @@ draw: } delwin(save); } - else { + else if (result) { *result = '\0'; for (i = 0; i < item_no; i++) { if (status[i]) { diff --git a/gnu/lib/libdialog/menubox.c b/gnu/lib/libdialog/menubox.c index cc58211..ef945af 100644 --- a/gnu/lib/libdialog/menubox.c +++ b/gnu/lib/libdialog/menubox.c @@ -203,7 +203,7 @@ draw: } delwin(save); } - else + else if (result) strcpy(result, items[(scroll + choice) * 2]); delwin(menu); delwin(dialog); diff --git a/gnu/lib/libdialog/radiolist.c b/gnu/lib/libdialog/radiolist.c index d368944..88fee25 100644 --- a/gnu/lib/libdialog/radiolist.c +++ b/gnu/lib/libdialog/radiolist.c @@ -222,7 +222,7 @@ draw: } delwin(save); } - else { + else if (result) { *result = '\0'; for (i = 0; i < item_no; i++) { if (status[i]) { |