diff options
Diffstat (limited to 'src/fan/fan.c')
-rw-r--r-- | src/fan/fan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fan/fan.c b/src/fan/fan.c index 5e36cb0..8296d61 100644 --- a/src/fan/fan.c +++ b/src/fan/fan.c @@ -109,11 +109,12 @@ static cim_fan_error_t reload_config_file(char const * fp) { * @return 0 on success */ FILE *config_file = NULL; int err; + char errbuf[STRERROR_BUF_LEN]; if (fp) { if (!(config_file = fopen(fp, "r"))) { error("Cound not open config file \"%s\": %s\n", - fp, strerror(errno)); + fp, strerror_r(errno, errbuf, sizeof(errbuf))); } } err = sensors_init(config_file); |