mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
for #155, fix all warnings for mac.
This commit is contained in:
parent
51967afb52
commit
a15ce1147f
12 changed files with 148 additions and 148 deletions
|
@ -932,8 +932,8 @@ int SrsHttpResponseReader::read_chunked(std::string& data)
|
|||
srs_assert(length >= 3);
|
||||
|
||||
// it's ok to set the pos and pos+1 to NULL.
|
||||
at[length - 1] = NULL;
|
||||
at[length - 2] = NULL;
|
||||
at[length - 1] = 0;
|
||||
at[length - 2] = 0;
|
||||
|
||||
// size is the bytes size, excludes the chunk header and end CRLF.
|
||||
int ilength = ::strtol(at, NULL, 16);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue