protocol/rtsp: fixed sscanf in ReadResponse

This commit is contained in:
Saxon 2019-04-28 13:51:25 +09:30
parent fa7c3044f3
commit d7c2421146
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ func ReadResponse(r io.Reader) (*Response, error) {
}
resp.Proto = "RTSP"
_, err = fmt.Sscanf(s[5:12], "%d.%d %d %s", &resp.ProtoMajor, &resp.ProtoMinor, &resp.StatusCode)
_, err = fmt.Sscanf(s[5:12], "%d.%d %d", &resp.ProtoMajor, &resp.ProtoMinor, &resp.StatusCode)
if err != nil {
return nil, err
}