From: DeaDDooMER Date: Fri, 15 May 2020 14:16:41 +0000 (+0300) Subject: linux: fix build X-Git-Url: https://deadsoftware.ru/gitweb?p=flatwaifu.git;a=commitdiff_plain;h=5db630598095f47d6259d0c9daff966131e869f7 linux: fix build --- 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;