Skip to content

Commit a1fd6ef

Browse files
Include limits.h for MAX_PATH
ade6d0e included changes in config.c to use realpath(3) to determine the full path of a config file, declaring a char array of size PATH_MAX for storage - except this broke because PATH_MAX is defined in limits.h which wasn't included.
1 parent 163bbe8 commit a1fd6ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/config.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
#include <stdio.h>
4040
#include <unistd.h>
41+
#include <limits.h>
4142
#include <stdlib.h>
4243
#include <assert.h>
4344
#include <string.h>

0 commit comments

Comments
 (0)