1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-13 02:33:03 +01:00
This commit is contained in:
Jfreegman 2013-11-30 22:15:16 -05:00
commit 37dd2bee2d

View File

@ -113,7 +113,7 @@ static void chat_onFileSendRequest(ToxWindow *self, Tox *m, int num, uint8_t fil
ChatContext *ctx = self->chatwin;
int idx = strlen(pathname) - 1;
while (pathname[idx] == '/' && idx >= 0) {
while (idx >= 0 && pathname[idx] == '/') {
pathname[idx--] = 0;
}