openbsd-ports/net/osrtspproxy/patches/patch-rtspproxy_proxysession_cpp
bluhm 54748039df Apply a bunch of patches to get osrtspproxy running. Upstream is
dead, so keep patches locally.  On top of that, fix linker warnings
about unsave string operations.  Take maintainer.
OK ajacoutot@
2015-07-01 11:33:50 +00:00

13 lines
527 B
Plaintext

$OpenBSD: patch-rtspproxy_proxysession_cpp,v 1.1 2015/07/01 11:33:50 bluhm Exp $
--- rtspproxy/proxysession.cpp.orig Thu Feb 8 01:07:28 2001
+++ rtspproxy/proxysession.cpp Thu Jan 8 00:10:40 2015
@@ -239,7 +239,7 @@ void CRtspProxySession::SetSessionID( const CString& s
m_clientSessionID = strSessionID;
char szSessionIndex[20];
- sprintf( szSessionIndex, "%u", sessionIndex );
+ snprintf( szSessionIndex, sizeof(szSessionIndex), "%u", sessionIndex );
m_clientSessionID.Append( szSessionIndex );
}