diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-06-01 20:53:32 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-06-01 20:53:32 +0200 |
commit | 0e09600a431d0e0f2cde6457e088d84caf6d6f5d (patch) | |
tree | bb69bed98b85b3ffd8aa76b6bea8238b01cd4db9 /win | |
parent | c70a6b5699ef905c05bc669fb6cc9c16f33c6787 (diff) |
m_mysql Fix escaping strings longer than MAXBUF/2
Quotes from the documentation:
"You must allocate the to buffer to be at least length*2+1 bytes long. (In the worst case, each character may need to be encoded as using two bytes, and you need room for the terminating null byte.)"
"The return value is the length of the encoded string, not including the terminating null character."
http://dev.mysql.com/doc/refman/5.6/en/mysql-real-escape-string.html
Diffstat (limited to 'win')
0 files changed, 0 insertions, 0 deletions