coverity#1242486 Out-of-bounds access

Change-Id: I24d73edd90a7fbfe63dd70a1784fb2276ceb079b
This commit is contained in:
Caolán McNamara
2017-02-08 09:45:31 +00:00
parent 27a673ac52
commit fb107f15b2

View File

@@ -478,7 +478,7 @@ send_args( int fd, rtl_uString *pCwdPath )
if ( bResult )
{
char resp[ strlen( "InternalIPC::ProcessingDone" ) ];
char resp[SAL_N_ELEMENTS("InternalIPC::ProcessingDone")];
ssize_t n = read( fd, resp, SAL_N_ELEMENTS( resp ) );
bResult = n == (ssize_t) SAL_N_ELEMENTS( resp )
&& (memcmp(