From 5db630598095f47d6259d0c9daff966131e869f7 Mon Sep 17 00:00:00 2001 From: DeaDDooMER Date: Fri, 15 May 2020 17:16:41 +0300 Subject: [PATCH] linux: fix build --- src/menu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/menu.c b/src/menu.c index 5ef1478..4571b1d 100644 --- a/src/menu.c +++ b/src/menu.c @@ -410,7 +410,7 @@ void G_code (void) { Z_sound(s,128); } -static int strnlen (const char *s, int len) { +static int x_strnlen (const char *s, int len) { int i = 0; while (i < len && s[i] != 0) { i++; @@ -475,7 +475,7 @@ int GM_act (void) { } else if (type == GM_TEXTFIELD) { //if (input) { // icur += lastkey == KEY_LEFT ? -1 : +1; - // icur = min(max(icur, 0), strnlen(ibuf, imax)); + // icur = min(max(icur, 0), x_strnlen(ibuf, imax)); //} } break; @@ -503,7 +503,7 @@ int GM_act (void) { if (GM_send(m, cur, &msg)) { imax = min(msg.string.maxlen, GM_MAX_INPUT); strncpy(ibuf, msg.string.s, imax); - icur = strnlen(ibuf, imax); + icur = x_strnlen(ibuf, imax); } else { memset(ibuf, 0, GM_MAX_INPUT); imax = GM_MAX_INPUT; -- 2.29.2