1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix bug, use size_t for string::npos

This commit is contained in:
winlin 2015-03-17 15:36:12 +08:00
parent 2241ba0e34
commit 8a4312f4ec

View file

@ -1294,7 +1294,7 @@ SrsRequest* SrsHttpMessage::to_request(string vhost)
SrsRequest* req = new SrsRequest();
req->app = _uri->get_path();
ssize_t pos = string::npos;
size_t pos = string::npos;
if ((pos = req->app.rfind("/")) != string::npos) {
req->stream = req->app.substr(pos + 1);
req->app = req->app.substr(0, pos);