]> git.sur5r.net Git - cc65/commitdiff
Fixed open flags for append mode
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 19 Nov 2002 14:35:07 +0000 (14:35 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 19 Nov 2002 14:35:07 +0000 (14:35 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1543 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/_fopen.c

index a81c2358ae3a21a4d34ef95ec24ff96aa4094d11..ce6a718bae4bacc97acb82e4b32b70640f8e44f4 100644 (file)
@@ -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 */