From 3b081086f3aa22b88ccecac28e0e563ca8e2c6bb Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 19 Nov 2002 14:35:07 +0000 Subject: [PATCH] Fixed open flags for append mode git-svn-id: svn://svn.cc65.org/cc65/trunk@1543 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/_fopen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/common/_fopen.c b/libsrc/common/_fopen.c index a81c2358a..ce6a718ba 100644 --- a/libsrc/common/_fopen.c +++ b/libsrc/common/_fopen.c @@ -25,7 +25,7 @@ static unsigned char amode_to_bmode (const char* mode) binmode = O_RDONLY; break; case 'a': - binmode = O_WRONLY | O_APPEND; + binmode = O_WRONLY | O_CREAT | O_APPEND; break; default: return 0; /* invalid char */ -- 2.39.5