Commit 075de03d authored by Pete LaDow's avatar Pete LaDow

Use FILENAME_MAX to determine BUFSIZE when getting socket path.

parent de56bc27
......@@ -27,9 +27,11 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <stdio.h>
#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)
{
......
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