1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Revert "[button] No warnings related to char *"

This reverts commit 6602557d0e.
This commit is contained in:
Witold Filipczyk 2022-01-22 15:04:36 +01:00
parent d0e59d301b
commit d889484ca4

View File

@ -27,8 +27,8 @@
/* Left and right text appearing around label of button.
* Currently a dialog button is displayed as [ LABEL ] */
#define BUTTON_LEFT C_("[ ")
#define BUTTON_RIGHT C_(" ]")
#define BUTTON_LEFT "[ "
#define BUTTON_RIGHT " ]"
#define BUTTON_LEFT_LEN (sizeof(BUTTON_LEFT) - 1)
#define BUTTON_RIGHT_LEN (sizeof(BUTTON_RIGHT) - 1)
@ -63,7 +63,7 @@ add_dlg_button_do(struct dialog *dlg, char *text, int flags,
widget->info.button.truetextlen = textlen;
if (textlen > 1) {
char *pos = (char *)memchr(text, '~', textlen - 1);
char *pos = memchr(text, '~', textlen - 1);
if (pos) {
widget->info.button.hotkey_pos = pos - text;