Commit 4b3786d5 authored by Jan-Erik Rediger's avatar Jan-Erik Rediger
Browse files

Merge pull request #369 from jamel/snprintf

fix snprintf format string
parents 01075602 f932f0ed
......@@ -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);
}
......
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