diff options
Diffstat (limited to 'protocols')
-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;
|