fixed gnu warning
This commit is contained in:
1 parent
2d5ce8fcce
commit
51b3ea2446
1 file changed
+2
-2
@@ -1074,9 +1074,9 @@ caStatus casStrmClient::claimChannelAction()
|
||||
return S_cas_badProtocol; // disconnect client
|
||||
}
|
||||
|
||||
pName[mp->m_postsize-1] = '\0';
|
||||
pName[mp->m_postsize-1u] = '\0';
|
||||
|
||||
if (mp->m_postsize-1>unreasonablePVNameSize) {
|
||||
if ( ( mp->m_postsize - 1u ) > unreasonablePVNameSize ) {
|
||||
return S_cas_badProtocol; // disconnect client
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user