diff options
author | George Hazan <george.hazan@gmail.com> | 2013-10-19 14:35:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-10-19 14:35:34 +0000 |
commit | 41f218316dce6b1bfcfb0f2754379fa74c5138ed (patch) | |
tree | 1cd44fe63c6ebabf70d8c4b6f34be37ab8e844f7 /protocols/AimOscar/src | |
parent | 397e25f2b71347c7c83495fe5b25496ff3b02b75 (diff) |
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@6534 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/AimOscar/src')
-rw-r--r-- | protocols/AimOscar/src/conv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/AimOscar/src/conv.cpp b/protocols/AimOscar/src/conv.cpp index 04f87d068a..d1df140180 100644 --- a/protocols/AimOscar/src/conv.cpp +++ b/protocols/AimOscar/src/conv.cpp @@ -26,6 +26,7 @@ char* process_status_msg (const char *str, const char* sn) size_t size = strlen(src) + 1;
char* res = (char*)mir_alloc(size);
char* dest = res;
+ size_t len = strlen(sn);
for (; *src; ++src)
{
@@ -39,7 +40,6 @@ char* process_status_msg (const char *str, const char* sn) }
else if (src[0] == '%' && src[1] == 'n')
{
- size_t len = strlen(sn);
int off = dest - res;
res = (char*)mir_realloc(res, size + len);
dest = res + off;
|