summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorWolfgang Richter <wolf@cs.cmu.edu>2013-07-10 23:05:39 -0700
committerPieter Noordhuis <pcnoordhuis@gmail.com>2013-07-10 23:05:39 -0700
commit37a840dc2c0899e032e0fb05a0813e137a68f032 (patch)
treed7a43126311b1ab07ca3d83792b595ff2e54206e /README.md
parentafc462d35d6940f77db843f7981377b5d0d75c89 (diff)
Emphasize size_t length for %b formatting
Closes #121.
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 45b2eb9..dba4a8c 100644
--- a/README.md
+++ b/README.md
@@ -68,7 +68,7 @@ When you need to pass binary safe strings in a command, the `%b` specifier can b
used. Together with a pointer to the string, it requires a `size_t` length argument
of the string:
- reply = redisCommand(context, "SET foo %b", value, valuelen);
+ reply = redisCommand(context, "SET foo %b", value, (size_t) valuelen);
Internally, Hiredis splits the command in different arguments and will
convert it to the protocol used to communicate with Redis.