Move to end of file on append, when on Windows.

pull/2355/head
Roger A. Light 4 years ago
parent 5cae4d1d81
commit 7b614b3b59

@ -116,6 +116,9 @@ FILE *mosquitto__fopen(const char *path, const char *mode, bool restrict_read)
_close(fd); _close(fd);
return NULL; return NULL;
} }
if(mode[0] == 'a'){
fseek(fptr, 0, SEEK_END);
}
return fptr; return fptr;
}else { }else {

Loading…
Cancel
Save