projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
configure: provide a cli flag instead of forcing -Werror
[awesomized/libmemcached]
/
libtest
/
socket.cc
diff --git
a/libtest/socket.cc
b/libtest/socket.cc
index 7f7037f9dda19d154a00bce8105b5f84643dbfca..9e06841ac9abe2de3b64f7ee69c4a699ad863959 100644
(file)
--- a/
libtest/socket.cc
+++ b/
libtest/socket.cc
@@
-34,7
+34,7
@@
*
*/
*
*/
-#include
<config.h>
+#include
"libtest/yatlcon.h"
#include <libtest/common.h>
static char global_socket[1024]= { 0 };
#include <libtest/common.h>
static char global_socket[1024]= { 0 };
@@
-55,7
+55,7
@@
void set_default_socket(const char *socket)
{
if (socket)
{
{
if (socket)
{
- strncpy(global_socket, socket, s
trlen(socket)
);
+ strncpy(global_socket, socket, s
izeof(global_socket)-1
);
}
}
}
}