fix build with clang6; bugfix from upstream (2018.02.28)

This commit is contained in:
naddy 2018-04-10 21:15:33 +00:00
parent 916db5ae9f
commit a11eb85c29
2 changed files with 16 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.17 2017/07/26 22:45:28 sthen Exp $
# $OpenBSD: Makefile,v 1.18 2018/04/10 21:15:33 naddy Exp $
COMMENT= LIVE555 streaming media library
DISTNAME= live.2012.02.04
PKGNAME= liveMedia-20120204
REVISION = 2
REVISION = 3
CATEGORIES= net devel
MASTER_SITES= http://comstyle.com/source/

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-liveMedia_RTSPClient_cpp,v 1.4 2018/04/10 21:15:33 naddy Exp $
Index: liveMedia/RTSPClient.cpp
--- liveMedia/RTSPClient.cpp.orig
+++ liveMedia/RTSPClient.cpp
@@ -837,7 +837,7 @@ Boolean RTSPClient::checkForHeader(char const* line, c
// The line begins with the desired header name. Trim off any whitespace, and return the header parameters:
unsigned paramIndex = headerNameLength;
while (line[paramIndex] != '\0' && (line[paramIndex] == ' ' || line[paramIndex] == '\t')) ++paramIndex;
- if (&line[paramIndex] == '\0') return False; // the header is assumed to be bad if it has no parameters
+ if (line[paramIndex] == '\0') return False; // the header is assumed to be bad if it has no parameters
headerParams = &line[paramIndex];
return True;