about summary refs log tree commit diff stats
path: root/src/LYOptions.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2017-07-02 21:03:29 +0000
committerThomas E. Dickey <dickey@invisible-island.net>2017-07-02 21:03:29 +0000
commitf8533bb42247761b6b28bdff208cf03289d2fc75 (patch)
tree1020437768c3029c4fc898c0b242784c1a4d3c71 /src/LYOptions.c
parent5600928a5398f5f67b7e0915021dddf3e56acc74 (diff)
downloadlynx-snapshots-f8533bb42247761b6b28bdff208cf03289d2fc75.tar.gz
snapshot of project "lynx", label v2-8-9dev_14e
Diffstat (limited to 'src/LYOptions.c')
-rw-r--r--src/LYOptions.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/LYOptions.c b/src/LYOptions.c
index 8e795c51..5100d940 100644
--- a/src/LYOptions.c
+++ b/src/LYOptions.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYOptions.c,v 1.171 2017/01/01 01:49:49 tom Exp $ */
+/* $LynxId: LYOptions.c,v 1.172 2017/07/02 20:07:12 tom Exp $ */
 #include <HTUtils.h>
 #include <HTFTP.h>
 #include <HTTP.h>		/* 'reloading' flag */
@@ -3794,7 +3794,7 @@ static int gen_options(char **newfile)
 	PutLabel(fp0, gettext("Line edit style"), lineedit_mode_string);
 	BeginSelect(fp0, lineedit_mode_string);
 	for (i = 0; LYEditorNames[i]; i++) {
-	    char temp[16];
+	    char temp[DigitsOf(i) + 3];
 
 	    sprintf(temp, "%d", i);
 	    PutOption(fp0, i == current_lineedit, temp, LYEditorNames[i]);
@@ -3806,7 +3806,7 @@ static int gen_options(char **newfile)
     PutLabel(fp0, gettext("Keyboard layout"), kblayout_string);
     BeginSelect(fp0, kblayout_string);
     for (i = 0; LYKbLayoutNames[i]; i++) {
-	char temp[16];
+	char temp[DigitsOf(i) + 3];
 
 	sprintf(temp, "%d", i);
 	PutOption(fp0, i == current_layout, temp, LYKbLayoutNames[i]);
@@ -3838,7 +3838,7 @@ static int gen_options(char **newfile)
     PutLabel(fp0, gettext("Display character set"), display_char_set_string);
     MaybeSelect(fp0, LYLocaleCharset, display_char_set_string);
     for (i = 0; LYchar_set_names[i]; i++) {
-	char temp[10];
+	char temp[DigitsOf(i) + 3];
 	size_t len = strlen(LYchar_set_names[i]);
 
 	if (len > cset_len)