diff options
author | antirez <antirez@gmail.com> | 2011-05-24 19:43:11 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2011-05-25 12:32:50 +0200 |
commit | 3bb818df405e667087fe3336cd91159790f63981 (patch) | |
tree | 080b97b60da3489522570f63b599ddbe21b6ebc0 /src/sds.h | |
parent | 449286a588c820ca1a120c2e9e8c57c1a31345a2 (diff) | |
download | redis-3bb818df405e667087fe3336cd91159790f63981.tar.gz |
Make sure error and status replies emitted by Lua scripts can never have more than a newline, otherwise it is a protocol violation and clients will desync.
Diffstat (limited to 'src/sds.h')
-rw-r--r-- | src/sds.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -85,5 +85,6 @@ sds sdsfromlonglong(long long value); sds sdscatrepr(sds s, char *p, size_t len); sds *sdssplitargs(char *line, int *argc); void sdssplitargs_free(sds *argv, int argc); +sds sdsmapchars(sds s, char *from, char *to, size_t setlen); #endif |