diff options
Diffstat (limited to 'dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch')
-rw-r--r-- | dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch b/dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch new file mode 100644 index 000000000000..c2c5db0c56f0 --- /dev/null +++ b/dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch @@ -0,0 +1,20 @@ +--- supesmack-1.3/src/query.cc.orig 2005-04-30 14:51:29.000000000 +0100 ++++ supesmack-1.3/src/query.cc 2006-08-15 22:06:06.000000000 +0100 +@@ -197,7 +197,7 @@ + { + string s((*i).first); + int str_len = (*i).first.length(); +- if((unsigned)p + str_len + 3 *sizeof(int) < (unsigned)p_end ) ++ if((unsigned long)p + str_len + 3 *sizeof(int) < (unsigned long)p_end ) + { + *p++ = (char) str_len; + const char* q_type_name = s.c_str(); +@@ -216,7 +216,7 @@ + die(0, "report buffer overflow -- too many query types"); + } + +- len = (unsigned)p - (unsigned)buf; ++ len = (unsigned long)p - (unsigned long)buf; + *(buf) = num_recs; + + if(write(fd, buf, len) != len) |