mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 22:13:26 +01:00
Merge branch 'master' of https://github.com/Tox/toxic
This commit is contained in:
commit
37dd2bee2d
@ -113,7 +113,7 @@ static void chat_onFileSendRequest(ToxWindow *self, Tox *m, int num, uint8_t fil
|
|||||||
ChatContext *ctx = self->chatwin;
|
ChatContext *ctx = self->chatwin;
|
||||||
|
|
||||||
int idx = strlen(pathname) - 1;
|
int idx = strlen(pathname) - 1;
|
||||||
while (pathname[idx] == '/' && idx >= 0) {
|
while (idx >= 0 && pathname[idx] == '/') {
|
||||||
pathname[idx--] = 0;
|
pathname[idx--] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user