diff options
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; } |