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
8b616d35
Commit
8b616d35
authored
Nov 04, 2010
by
Pieter Noordhuis
Browse files
The buffer length to feed should be a size_t
parent
183220bf
Changes
2
Show whitespace changes
Inline
Side-by-side
hiredis.c
View file @
8b616d35
...
@@ -424,7 +424,7 @@ char *redisReplyReaderGetError(void *reader) {
...
@@ -424,7 +424,7 @@ char *redisReplyReaderGetError(void *reader) {
return
r
->
error
;
return
r
->
error
;
}
}
void
redisReplyReaderFeed
(
void
*
reader
,
char
*
buf
,
in
t
len
)
{
void
redisReplyReaderFeed
(
void
*
reader
,
char
*
buf
,
size_
t
len
)
{
redisReader
*
r
=
reader
;
redisReader
*
r
=
reader
;
/* Copy the provided buffer. */
/* Copy the provided buffer. */
...
...
hiredis.h
View file @
8b616d35
...
@@ -115,7 +115,7 @@ int redisReplyReaderSetReplyObjectFunctions(void *reader, redisReplyObjectFuncti
...
@@ -115,7 +115,7 @@ int redisReplyReaderSetReplyObjectFunctions(void *reader, redisReplyObjectFuncti
void
*
redisReplyReaderGetObject
(
void
*
reader
);
void
*
redisReplyReaderGetObject
(
void
*
reader
);
char
*
redisReplyReaderGetError
(
void
*
reader
);
char
*
redisReplyReaderGetError
(
void
*
reader
);
void
redisReplyReaderFree
(
void
*
ptr
);
void
redisReplyReaderFree
(
void
*
ptr
);
void
redisReplyReaderFeed
(
void
*
reader
,
char
*
buf
,
in
t
len
);
void
redisReplyReaderFeed
(
void
*
reader
,
char
*
buf
,
size_
t
len
);
int
redisReplyReaderGetReply
(
void
*
reader
,
void
**
reply
);
int
redisReplyReaderGetReply
(
void
*
reader
,
void
**
reply
);
/* Functions to format a command according to the protocol. */
/* Functions to format a command according to the protocol. */
...
...
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