summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDom Lachowicz <domlachowicz@gmail.com>2009-09-12 14:23:31 +0000
committerDom Lachowicz <domlachowicz@gmail.com>2009-09-12 14:23:31 +0000
commit35444b80fd2917e51131de2b14b2f7a00ed667fc (patch)
tree89dfedd418bae3e720c1c367c862dc0740b60049
parent9ca33ca3cf45d611c4a2222b92dbec866adae67a (diff)
downloadenchant-35444b80fd2917e51131de2b14b2f7a00ed667fc.tar.gz
enchant_pwl_init_with_file truncates pwl file - bug #12350
git-svn-id: svn+ssh://svn.abisource.com/svnroot/enchant/trunk@28175 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
-rw-r--r--src/pwl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pwl.c b/src/pwl.c
index 5828c90..07a024f 100644
--- a/src/pwl.c
+++ b/src/pwl.c
@@ -264,7 +264,7 @@ EnchantPWL* enchant_pwl_init_with_file(const char * file)
g_return_val_if_fail (file != NULL, NULL);
- fd = enchant_fopen(file, "wb");
+ fd = enchant_fopen(file, "ab+");
if(fd == NULL)
{
return NULL;