diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
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) |