diff options
author | Piotr Sikora <piotr.sikora@frickle.com> | 2012-03-16 04:02:06 +0000 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-03-17 23:11:22 +0100 |
commit | f32b7c944b59432cbb3be2e25955cd9103803fff (patch) | |
tree | 84bd40e02b389f26bc203330d26a9e710aee7c35 /src | |
parent | 35f7ea9c276da9cb13f2ddfcf22cefb89b558086 (diff) |
Use strncpy() instead of strcpy().
Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/ipc_address.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipc_address.cpp b/src/ipc_address.cpp index dc58e6c..faea5db 100644 --- a/src/ipc_address.cpp +++ b/src/ipc_address.cpp @@ -43,7 +43,7 @@ int xs::ipc_address_t::resolve (const char *path_) } address.sun_family = AF_UNIX; - strcpy (address.sun_path, path_); + strncpy (address.sun_path, path_, sizeof (address.sun_path)); return 0; } |