Commit 9a3c9ff8 authored by Constantin Rack's avatar Constantin Rack

Merge pull request #1857 from Suudy/master

Use FILENAME_MAX to determine BUFSIZE when getting socket path.
parents de56bc27 075de03d
...@@ -27,9 +27,11 @@ ...@@ -27,9 +27,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <stdio.h>
#include "testutil.hpp" #include "testutil.hpp"
#define BUF_SIZE 73 /* Use the worst case filename size for the buffer (+1 for trailing NUL) */
#define BUF_SIZE (FILENAME_MAX+1)
int main (void) int main (void)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment