commit | d11ca5a95e035aca2e9107aba66f9fad1549ffb7 | [log] [tgz] |
---|---|---|
author | Roger Meier <roger@apache.org> | Mon Oct 18 08:22:57 2010 +0000 |
committer | Roger Meier <roger@apache.org> | Mon Oct 18 08:22:57 2010 +0000 |
tree | a23ded38f4d5e4f1911436e26222e33a8ac47372 | |
parent | 5e64d51efcbaac0839ac78565a5e010843587f95 [diff] [blame] |
THRIFT-916 gcc warnings(partial) use snprintf instead of sprintf Patch: Christian Lavoie git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1023682 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/cpp/src/transport/TServerSocket.cpp b/lib/cpp/src/transport/TServerSocket.cpp index 90a27ce..8608898 100644 --- a/lib/cpp/src/transport/TServerSocket.cpp +++ b/lib/cpp/src/transport/TServerSocket.cpp
@@ -264,7 +264,7 @@ } address.sun_family = AF_UNIX; - sprintf(address.sun_path, path_.c_str()); + snprintf(address.sun_path, sizeof(address.sun_path), "%s", path_.c_str()); len = sizeof(address); do {