1
0
mirror of https://github.com/cc65/cc65.git synced 2025-03-13 15:32:09 +00:00

Fixed open flags for append mode

git-svn-id: svn://svn.cc65.org/cc65/trunk@1543 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-11-19 14:35:07 +00:00
parent b2a06ab041
commit 3b081086f3

View 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 */