1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-06-29 16:37:46 +02:00
This commit is contained in:
Jfreegman 2013-11-28 20:24:58 -05:00
commit 8cf3043dd3

View File

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