openresty / lua-resty-mysql

Nonblocking Lua MySQL driver library for ngx_lua or OpenResty
708 stars 236 forks source link

fix: strip 0x00 from the end of a string #69

Closed huangnauh closed 7 years ago

huangnauh commented 7 years ago

local str, pos = _from_cstring(data, pos)

0x00 in str probably not needed.

agentzh commented 7 years ago

@huangnauh Merged. Thanks!