mysql-super-smack-1.3.amd64.patch 702 B

123456789101112131415161718192021
  1. --- supesmack-1.3/src/query.cc.orig 2005-04-30 14:51:29.000000000 +0100
  2. +++ supesmack-1.3/src/query.cc 2006-08-15 22:06:06.000000000 +0100
  3. @@ -197,7 +197,7 @@
  4. {
  5. string s((*i).first);
  6. int str_len = (*i).first.length();
  7. - if((unsigned)p + str_len + 3 *sizeof(int) < (unsigned)p_end )
  8. + if((unsigned long)p + str_len + 3 *sizeof(int) < (unsigned long)p_end )
  9. {
  10. *p++ = (char) str_len;
  11. const char* q_type_name = s.c_str();
  12. @@ -216,7 +216,7 @@
  13. die(0, "report buffer overflow -- too many query types");
  14. }
  15. - len = (unsigned)p - (unsigned)buf;
  16. + len = (unsigned long)p - (unsigned long)buf;
  17. *(buf) = num_recs;
  18. if(write(fd, buf, len) != len)