Move to end of file on append, when on Windows.
This commit is contained in:
parent
5cae4d1d81
commit
7b614b3b59
@ -116,6 +116,9 @@ FILE *mosquitto__fopen(const char *path, const char *mode, bool restrict_read)
|
||||
_close(fd);
|
||||
return NULL;
|
||||
}
|
||||
if(mode[0] == 'a'){
|
||||
fseek(fptr, 0, SEEK_END);
|
||||
}
|
||||
return fptr;
|
||||
|
||||
}else {
|
||||
|
Loading…
Reference in New Issue
Block a user