summaryrefslogtreecommitdiff
path: root/apps/gui/option_select.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/option_select.c')
-rw-r--r--apps/gui/option_select.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c
index e154467428..4687367fba 100644
--- a/apps/gui/option_select.c
+++ b/apps/gui/option_select.c
@@ -68,8 +68,8 @@ const char *option_get_valuestring(const struct settings_list *setting,
68 if ((setting->flags & F_BOOL_SETTING) == F_BOOL_SETTING) 68 if ((setting->flags & F_BOOL_SETTING) == F_BOOL_SETTING)
69 { 69 {
70 bool val = (bool)temp_var; 70 bool val = (bool)temp_var;
71 strlcpy(buffer, str(val? setting->bool_setting->lang_yes : 71 strmemccpy(buffer, str(val? setting->bool_setting->lang_yes :
72 setting->bool_setting->lang_no), buf_len); 72 setting->bool_setting->lang_no), buf_len);
73 } 73 }
74#if 0 /* probably dont need this one */ 74#if 0 /* probably dont need this one */
75 else if ((setting->flags & F_FILENAME) == F_FILENAME) 75 else if ((setting->flags & F_FILENAME) == F_FILENAME)
@@ -121,7 +121,7 @@ const char *option_get_valuestring(const struct settings_list *setting,
121 const struct choice_setting *info = setting->choice_setting; 121 const struct choice_setting *info = setting->choice_setting;
122 if (info->talks[(int)temp_var] < LANG_LAST_INDEX_IN_ARRAY) 122 if (info->talks[(int)temp_var] < LANG_LAST_INDEX_IN_ARRAY)
123 { 123 {
124 strlcpy(buffer, str(info->talks[(int)temp_var]), buf_len); 124 strmemccpy(buffer, str(info->talks[(int)temp_var]), buf_len);
125 } 125 }
126 else 126 else
127 { 127 {
@@ -133,7 +133,7 @@ const char *option_get_valuestring(const struct settings_list *setting,
133 { 133 {
134 int value = (int)temp_var; 134 int value = (int)temp_var;
135 char *val = P2STR(setting->choice_setting->desc[value]); 135 char *val = P2STR(setting->choice_setting->desc[value]);
136 strlcpy(buffer, val, buf_len); 136 strmemccpy(buffer, val, buf_len);
137 } 137 }
138 } 138 }
139 return str; 139 return str;