configuration files (C): fix bug
configuration files (C): fix bug: a task in smol-software-harbor (Harbor dataset). cfg get() in src/config.c keeps a trailing carriage return when the file has Windows line endings, so port comes back as "5432\r" and the test fails. As src/config.h says, values must be trimmed of spaces and of the…
The task
`cfg_get()` in `src/config.c` keeps a trailing carriage return when the file has Windows line endings, so `port` comes back as `"5432\r"` and the test fails. As `src/config.h` says, values must be trimmed of spaces and of the line end. Fix it and run `make -B test`.
Part of efederici/smol-software-harbor.