mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-05-21 12:24:29 +02:00
libcommon: mosquitto_file_read should use "rb", not "rt".
This commit is contained in:
parent
78631a0da6
commit
76c6dd3fe3
|
|
@ -457,7 +457,7 @@ int mosquitto_read_file(const char *file, bool restrict_read, char **buf, size_t
|
|||
if(buflen){
|
||||
*buflen = 0;
|
||||
}
|
||||
fptr = mosquitto_fopen(file, "rt", restrict_read);
|
||||
fptr = mosquitto_fopen(file, "rb", restrict_read);
|
||||
if(fptr == NULL){
|
||||
return MOSQ_ERR_ERRNO;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue