ports/net/osrtspproxy/patches/patch-rtspproxy_proxysession_cpp

11 lines
446 B
Text

--- 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 );
}