From d7c24211463ee096d282cb52a63ae3cd5f123074 Mon Sep 17 00:00:00 2001 From: Saxon Date: Sun, 28 Apr 2019 13:51:25 +0930 Subject: [PATCH] protocol/rtsp: fixed sscanf in ReadResponse --- protocol/rtsp/rtsp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/rtsp/rtsp.go b/protocol/rtsp/rtsp.go index a8adaa2c..b7cd5995 100644 --- a/protocol/rtsp/rtsp.go +++ b/protocol/rtsp/rtsp.go @@ -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 }