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

This commit is contained in:
Roger A. Light 2021-10-15 15:51:32 +01:00
parent 5cae4d1d81
commit 7b614b3b59

View File

@ -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 {