diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-08 09:45:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-08 10:41:06 +0000 |
commit | fb107f15b28cdba3e7a92d10cb44d85d6c933743 (patch) | |
tree | ac71bd52e5df4801937dd0756a8e779f047bd0ab /desktop/unx | |
parent | 27a673ac52e02f921ae78d409d0becc85bb7f602 (diff) |
coverity#1242486 Out-of-bounds access
Change-Id: I24d73edd90a7fbfe63dd70a1784fb2276ceb079b
Diffstat (limited to 'desktop/unx')
-rw-r--r-- | desktop/unx/source/start.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/unx/source/start.c b/desktop/unx/source/start.c index 7ae5ad4779d2..d191b48847e6 100644 --- a/desktop/unx/source/start.c +++ b/desktop/unx/source/start.c @@ -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( |