From: cuz Date: Tue, 19 Nov 2002 14:35:07 +0000 (+0000) Subject: Fixed open flags for append mode X-Git-Tag: V2.12.0~2089 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3b081086f3aa22b88ccecac28e0e563ca8e2c6bb;p=cc65 Fixed open flags for append mode git-svn-id: svn://svn.cc65.org/cc65/trunk@1543 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 */