Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
4b3786d5
Commit
4b3786d5
authored
Oct 18, 2015
by
Jan-Erik Rediger
Browse files
Merge pull request #369 from jamel/snprintf
fix snprintf format string
parents
01075602
f932f0ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/example.c
View file @
4b3786d5
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment