diff options
author | Jan-Erik Rediger <badboy@archlinux.us> | 2015-10-18 22:47:57 +0200 |
---|---|---|
committer | Jan-Erik Rediger <badboy@archlinux.us> | 2015-10-18 22:47:57 +0200 |
commit | 4b3786d57edb9bfb22a0442536b0b41d9a93eb69 (patch) | |
tree | 143ef3aaf91530411fddc07bcace56e557cf1ed7 /examples/example.c | |
parent | 010756025e8cefd1bc66c6d4ed3b1648ef6f1f95 (diff) | |
parent | f932f0ed275bf9d6653b11694e39a13f57e7dc54 (diff) |
Merge pull request #369 from jamel/snprintf
fix snprintf format string
Diffstat (limited to 'examples/example.c')
-rw-r--r-- | examples/example.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/example.c b/examples/example.c index 25226a8..4d494c5 100644 --- a/examples/example.c +++ b/examples/example.c @@ -57,7 +57,7 @@ int main(int argc, char **argv) { for (j = 0; j < 10; j++) { char buf[64]; - snprintf(buf,64,"%d",j); + snprintf(buf,64,"%u",j); reply = redisCommand(c,"LPUSH mylist element-%s", buf); freeReplyObject(reply); } |