summaryrefslogtreecommitdiff
path: root/src/commands/cmd_who.cpp
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-06-01 20:53:32 +0200
committerattilamolnar <attilamolnar@hush.com>2013-06-01 20:53:32 +0200
commit0e09600a431d0e0f2cde6457e088d84caf6d6f5d (patch)
treebb69bed98b85b3ffd8aa76b6bea8238b01cd4db9 /src/commands/cmd_who.cpp
parentc70a6b5699ef905c05bc669fb6cc9c16f33c6787 (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 'src/commands/cmd_who.cpp')
0 files changed, 0 insertions, 0 deletions