Skip to content

Conversation

doismellburning
Copy link

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.

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.
@doismellburning
Copy link
Author

(See #590 for more context)

@wb2osz
Copy link
Owner

wb2osz commented Aug 30, 2025

Thank you for pointing this out.

My Ubuntu and RPi test environments have gpsd installed.
gps.h includes limits.h so PATH_MAX was defined.

I did not test the case where gpsd was not present.

limits.h is now included in config.c

@wb2osz wb2osz closed this Aug 30, 2025
@doismellburning
Copy link
Author

doismellburning commented Aug 30, 2025

I see 4535fdb, appreciated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants