ports/irc/kvirc/files/patch-src_modules_rijndael_libkvirijndael.cpp
Jan Beich 3537aef17a irc/kvirc: unbreak with clang 4.0
src/modules/rijndael/libkvirijndael.cpp:331:11: error: ordered comparison between pointer and zero ('int *' and 'int')
                        if(len > 0)
                           ~~~ ^ ~
src/modules/rijndael/libkvirijndael.cpp:357:11: error: ordered comparison between pointer and zero ('int *' and 'int')
                        if(len > 0)
                           ~~~ ^ ~

Reported by:	antoine (via exp-run)
2017-02-01 05:28:52 +00:00

20 lines
672 B
C++

--- src/modules/rijndael/libkvirijndael.cpp.orig 2011-07-23 15:15:56 UTC
+++ src/modules/rijndael/libkvirijndael.cpp
@@ -328,7 +328,7 @@
setLastError(__tr2qs("The message is not a hexadecimal string: this is not my stuff"));
return false;
} else {
- if(len > 0)
+ if(*len > 0)
{
*outBuffer = (char *)KviMemory::allocate(*len);
KviMemory::move(*outBuffer,tmpBuf,*len);
@@ -354,7 +354,7 @@
setLastError(__tr2qs("The message is not a base64 string: this is not my stuff"));
return false;
} else {
- if(len > 0)
+ if(*len > 0)
{
*outBuffer = (char *)KviMemory::allocate(*len);
KviMemory::move(*outBuffer,tmpBuf,*len);