diff options
Diffstat (limited to 'protocols/ICQCorp/src/protocol.cpp')
-rw-r--r-- | protocols/ICQCorp/src/protocol.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/ICQCorp/src/protocol.cpp b/protocols/ICQCorp/src/protocol.cpp index 2ff22d3a41..5ec6c93449 100644 --- a/protocols/ICQCorp/src/protocol.cpp +++ b/protocols/ICQCorp/src/protocol.cpp @@ -1615,8 +1615,9 @@ ICQTransfer *ICQ::sendFile(ICQUser *u, char *description, char *filename, unsign transfer->count = i;
transfer->totalSize = size;
- transfer->path = _strdup(files[0]);
- *strrchr(transfer->path, '\\') = 0;
+ transfer->path = mir_strdup(transfer->files[0]);
+ char *s = strrchr(transfer->path, '\\');
+ if (s != NULL) *s = 0;
icqTransfers.push_back(transfer);
transfer->ack(ACKRESULT_SENTREQUEST);
|