Merge pull request #1857 from Suudy/master

Use FILENAME_MAX to determine BUFSIZE when getting socket path.
This commit is contained in:
Constantin Rack 2016-03-17 23:30:15 +01:00
commit 9a3c9ff864

View File

@ -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)
{ {