Commit 0ccbdcee authored by Itamar Haber's avatar Itamar Haber Committed by antirez
Browse files

Uses addReplyBulkCString


Signed-off-by: default avatarItamar Haber <itamar@redislabs.com>
parent 707a59c6
...@@ -1248,7 +1248,7 @@ int RM_ReplyWithStringBuffer(RedisModuleCtx *ctx, const char *buf, size_t len) { ...@@ -1248,7 +1248,7 @@ int RM_ReplyWithStringBuffer(RedisModuleCtx *ctx, const char *buf, size_t len) {
int RM_ReplyWithCString(RedisModuleCtx *ctx, const char *buf) { int RM_ReplyWithCString(RedisModuleCtx *ctx, const char *buf) {
client *c = moduleGetReplyClient(ctx); client *c = moduleGetReplyClient(ctx);
if (c == NULL) return REDISMODULE_OK; if (c == NULL) return REDISMODULE_OK;
addReplyBulkCBuffer(c,(char*)buf,strlen(buf)); addReplyBulkCString(c,(char*)buf);
return REDISMODULE_OK; return REDISMODULE_OK;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment