summaryrefslogtreecommitdiffstats
path: root/src/sim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim.c')
-rw-r--r--src/sim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim.c b/src/sim.c
index 8ef1c269..33764623 100644
--- a/src/sim.c
+++ b/src/sim.c
@@ -443,7 +443,7 @@ static gboolean cache_info(const char *path, const unsigned char *info, int len)
r = TFR(write(fd, info, len));
TFR(close(fd));
- if (r < 6) {
+ if (r < len) {
unlink(path);
return FALSE;
}