diff options
author | David Tardon <dtardon@redhat.com> | 2012-07-03 10:38:05 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-07-03 17:47:19 +0200 |
commit | 0fa47c8614dd4e76a91e78cf35aed44396e893ed (patch) | |
tree | 4f2d24dcc65944e593f0a2edd31844bb810d7dfc /desktop/unx | |
parent | aea8838e25a72b08e9b79cf9876719f1941fe3cb (diff) |
coverity: ensure the string is null-terminated
Change-Id: Iaaa0e60ca99e2beef7c70d38343917c4549d1eea
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 d1a09a7efd7b..2ecb779a3e04 100644 --- a/desktop/unx/source/start.c +++ b/desktop/unx/source/start.c @@ -386,7 +386,7 @@ connect_pipe( rtl_uString *pPipePath ) fcntl( fd, F_SETFD, FD_CLOEXEC ); addr.sun_family = AF_UNIX; - strncpy( addr.sun_path, rtl_string_getStr( pPipeStr ), sizeof( addr.sun_path ) ); + strncpy( addr.sun_path, rtl_string_getStr( pPipeStr ), sizeof( addr.sun_path ) - 1 ); rtl_string_release( pPipeStr ); /* cut / paste from osl's pipe.c */ |