summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPiotr Sikora <piotr.sikora@frickle.com>2012-03-16 04:02:06 +0000
committerMartin Sustrik <sustrik@250bpm.com>2012-03-17 23:11:22 +0100
commitf32b7c944b59432cbb3be2e25955cd9103803fff (patch)
tree84bd40e02b389f26bc203330d26a9e710aee7c35 /src
parent35f7ea9c276da9cb13f2ddfcf22cefb89b558086 (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.cpp2
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;
}