summary refs log tree commit diff
path: root/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat.h b/compat.h
index a3788dc..6398510 100644
--- a/compat.h
+++ b/compat.h
@@ -87,7 +87,7 @@ funopen(
 	if (!funopen) return NULL;
 	assert(!seekfn);
 	*funopen = (struct _funopen) { (void *)cookie, readfn, writefn, closefn };
-	return fopencookie(funopen, "r+", _cookie_fns);
+	return fopencookie(funopen, "a+", _cookie_fns);
 }
 
 #endif /* __linux__ */