1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-08 19:34:14 -04:00

removed extra variable in inp_get_char

This commit is contained in:
Dmitry Podgorny 2013-01-04 20:57:55 +02:00
parent a626f80117
commit f210b49285

View File

@ -190,7 +190,6 @@ inp_get_char(char *input, int *size)
} else { } else {
char bytes[MB_CUR_MAX]; char bytes[MB_CUR_MAX];
size_t utf_len = wcrtomb(bytes, ch, NULL); size_t utf_len = wcrtomb(bytes, ch, NULL);
int i;
for (i = 0 ; i < utf_len; i++) { for (i = 0 ; i < utf_len; i++) {
input[(*size)++] = bytes[i]; input[(*size)++] = bytes[i];
} }