1
0
mirror of https://github.com/Tha14/toxic.git synced 2026-01-27 02:53:15 +01:00

another UB fix

This commit is contained in:
Jfreegman
2014-07-16 15:55:04 -04:00
parent ce4f293574
commit 83f0720a39
3 changed files with 13 additions and 6 deletions

View File

@@ -177,7 +177,7 @@ static void groupchat_onGroupAction(ToxWindow *self, Tox *m, int groupnum, int p
uint16_t n_len = tox_get_self_name(m, (uint8_t *) selfnick);
selfnick[n_len] = '\0';
bool nick_match = strcasestr(action, selfnick);
const char *nick_match = strcasestr(action, selfnick);
if (nick_match) {
alert_type = WINDOW_ALERT_0;