diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-13 20:28:39 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-13 20:56:39 +0100 |
commit | b15a80f003fe27163e9a5c86ff170ffe0fbdf41a (patch) | |
tree | d1406bae0f0eb1e4ffd27d05db8417ad312bf915 /tools | |
parent | 45d1b0331bf65de11b77e97e15d50ad20c6a3c81 (diff) |
Fix Buffer overrun possible for long command line arguments
Change-Id: I5e66ded25afd08f4e203ce8484001e11e0022fca
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bootstrp/rscdep.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bootstrp/rscdep.cxx b/tools/bootstrp/rscdep.cxx index 9d29d8670cae..04ae7a1f5051 100644 --- a/tools/bootstrp/rscdep.cxx +++ b/tools/bootstrp/rscdep.cxx @@ -81,7 +81,7 @@ int main( int argc, char** argv ) for ( int i=1; i<argc; i++) { - strcpy( aBuf, (const char *)argv[i] ); + strncpy( aBuf, (const char *)argv[i], sizeof(aBuf) ); const sal_Int32 nLength (strlen(aBuf)); #ifdef DEBUG |