Skip to content

Commit 18f7421

Browse files
authored
Merge pull request #2612 from pqarmitage/updates
lib: fix fopen_safe after adding "e" mode flag support
2 parents ba06722 + dbc5a75 commit 18f7421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ fopen_safe(const char *path, const char *mode)
11481148

11491149
if ((mode[0] != 'a' && mode[0] != 'w') ||
11501150
(mode[1] &&
1151-
(mode[1] != '+' || mode[2]))) {
1151+
((mode[1] != 'e' && mode[1] != '+') || mode[2]))) {
11521152
errno = EINVAL;
11531153
return NULL;
11541154
}

0 commit comments

Comments
 (0)