summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6e1b30a)
raw | patch | inline | side by side (parent: 6e1b30a)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 15 May 2020 14:16:41 +0000 (17:16 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Fri, 15 May 2020 14:16:41 +0000 (17:16 +0300) |
src/menu.c | patch | blob | history |
diff --git a/src/menu.c b/src/menu.c
index 5ef147852491e60e777abb2932f2ee8438293129..4571b1d1fb72442880f76469d75a9faece719c54 100644 (file)
--- a/src/menu.c
+++ b/src/menu.c
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++;
} 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;
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;