summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-08-29 18:08:38 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-08-29 18:08:38 +0000
commit084110de8be5ea84ec86d643c9ca4c2ea5aa65dc (patch)
tree954c71d1ee5c14da0c44ce9292558e52fc7270d5 /protocols
parent995d9bcf3ef85618ac6bc44e3b0543f9e357e661 (diff)
compilation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@15101 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Yahoo/src/libyahoo2/yahoo_util.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Yahoo/src/libyahoo2/yahoo_util.cpp b/protocols/Yahoo/src/libyahoo2/yahoo_util.cpp
index 8192436834..a3f60df7fc 100644
--- a/protocols/Yahoo/src/libyahoo2/yahoo_util.cpp
+++ b/protocols/Yahoo/src/libyahoo2/yahoo_util.cpp
@@ -133,7 +133,8 @@ char ** y_strsplit(char * str, char * sep, int nelem)
vector = y_new(char *, nelem + 1);
- for(char *p=str, *s=strstr(p,sep); i<nelem && s; p=s+l, s=strstr(p,sep), i++) {
+ char *p, *s;
+ for(p=str, s=strstr(p,sep); i<nelem && s; p=s+l, s=strstr(p,sep), i++) {
int len = s-p;
vector[i] = y_new(char, len+1);
strncpy(vector[i], p, len);