diff options
author | Wolfgang Richter <wolf@cs.cmu.edu> | 2013-07-10 23:05:39 -0700 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2013-07-10 23:05:39 -0700 |
commit | 37a840dc2c0899e032e0fb05a0813e137a68f032 (patch) | |
tree | d7a43126311b1ab07ca3d83792b595ff2e54206e /README.md | |
parent | afc462d35d6940f77db843f7981377b5d0d75c89 (diff) |
Emphasize size_t length for %b formatting
Closes #121.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |