summaryrefslogtreecommitdiff
path: root/src/pwl.c
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2017-04-06 22:51:07 +0100
committerReuben Thomas <rrt@sc3d.org>2017-04-06 22:51:46 +0100
commit68e0a115be3bcd28f10afc04710b5b7b26aae89d (patch)
tree9e6e0b766776440a7ca80d6885253dd3f4a48b33 /src/pwl.c
parent93faf7fe371b0a403d5cd4e745f90758fd546f6d (diff)
downloadenchant-68e0a115be3bcd28f10afc04710b5b7b26aae89d.tar.gz
Fix an fopen file mode for Windows
Windows doesn’t understand ab+, so use a+b
Diffstat (limited to 'src/pwl.c')
-rw-r--r--src/pwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pwl.c b/src/pwl.c
index 8ef5966..e5943f9 100644
--- a/src/pwl.c
+++ b/src/pwl.c
@@ -211,7 +211,7 @@ EnchantPWL* enchant_pwl_init_with_file(const char * file)
g_return_val_if_fail (file != NULL, NULL);
- fd = g_fopen(file, "ab+");
+ fd = g_fopen(file, "a+b");
if(fd == NULL)
{
return NULL;