Skip to content

Commit

Permalink
Merge pull request redis#369 from jamel/snprintf
Browse files Browse the repository at this point in the history
fix snprintf format string
  • Loading branch information
badboy committed Oct 18, 2015

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 0107560 + f932f0e commit 4b3786d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/example.c
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 4b3786d

Please sign in to comment.