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
f932f0ed
Commit
f932f0ed
authored
Oct 05, 2015
by
Sergey Polovko
Browse files
fix snprintf format string
parent
01075602
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/example.c
View file @
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
);
}
...
...
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