diff options
author | June McEnroe <june@causal.agency> | 2021-06-11 21:02:40 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-06-11 21:02:40 -0400 |
commit | c6009cf13c0fd2a2f458d2081c4ed59a07ca0ef0 (patch) | |
tree | ec71dffd1ab6b55038dc6a5e02ccdbaa49832efe /url.c | |
parent | OpenBSD: Drop now unneeded file system access for save file (diff) | |
download | catgirl-c6009cf13c0fd2a2f458d2081c4ed59a07ca0ef0.tar.gz catgirl-c6009cf13c0fd2a2f458d2081c4ed59a07ca0ef0.zip |
Open save file with "a+"
Avoids another small TOCTOU. Rewind before loading since "a+" sets the file position at the end. Remove unnecessary fseek after truncation, since "a+" always writes at the end of the file.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions