1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-30 03:56:45 +02:00

small fix

This commit is contained in:
Jfreegman
2014-07-16 21:32:47 -04:00
parent 4426eaddd9
commit b5f34f42a8
2 changed files with 7 additions and 5 deletions

View File

@ -239,9 +239,9 @@ int get_nick_truncate(Tox *m, char *buf, int friendnum)
returns length of s if char not found */
int char_find(int idx, const char *s, char ch)
{
int i = 0;
int i = idx;
for (i = idx; s[i]; ++i) {
for ( ; s[i]; ++i) {
if (s[i] == ch)
break;
}