2005-09-28 [paul] 1.9.14cvs59
[claws.git] / src / gtk / gtkaspell.c
index 98e1ceccfc4fd42d63b5dc8a9c61e2292d379eac..18de6b3f83705bda478f738a992b07691bce4bcf 100644 (file)
@@ -1043,7 +1043,7 @@ static gboolean get_word_from_pos(GtkAspell *gtkaspell, gint pos,
                                gtkaspell->gtkaspeller->dictionary->encoding);
                        g_free(tmp);
                        strncpy(buf, conv, buflen-1);
                                gtkaspell->gtkaspeller->dictionary->encoding);
                        g_free(tmp);
                        strncpy(buf, conv, buflen-1);
-                       buf[buflen]='\0';
+                       buf[buflen-1]='\0';
                        g_free(conv);
                } else
                        return FALSE;
                        g_free(conv);
                } else
                        return FALSE;