summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSergey Polovko <jamel@yandex-team.ru>2015-10-05 16:22:00 +0300
committerSergey Polovko <jamel@yandex-team.ru>2015-10-05 16:22:00 +0300
commitf932f0ed275bf9d6653b11694e39a13f57e7dc54 (patch)
tree143ef3aaf91530411fddc07bcace56e557cf1ed7 /examples
parent010756025e8cefd1bc66c6d4ed3b1648ef6f1f95 (diff)
fix snprintf format string
Diffstat (limited to 'examples')
-rw-r--r--examples/example.c2
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);
}