+2003-05-19
+
+ * src/compose.c: compose_insert_sig(): fixed the bug that always
+ appended signature separator if signature file was not found.
+ compose_get_signature_str(): fixed the bug that caused crash if
+ signature file cannot be opened.
+
2003-05-16
* version 0.9.0
+2003-05-19
+
+ * src/compose.c: compose_insert_sig(): ½ð̾¥Õ¥¡¥¤¥ë¤¬¸«¤Ä¤«¤é¤Ê¤¤
+ ¾ì¹ç¤Ë¾ï¤Ë½ð̾¶èÀÚ¤ê¤òÄɲ䷤Ƥ¤¤¿¥Ð¥°¤ò½¤Àµ¡£
+ compose_get_signature_str(): ½ð̾¥Õ¥¡¥¤¥ë¤¬³«¤±¤Ê¤¤¾ì¹ç¤Ë¥¯¥é¥Ã¥·¥å
+ ¤¹¤ë¥Ð¥°¤ò½¤Àµ¡£
+
2003-05-16
* version 0.9.0
else
tmp = g_strdup(compose->sig_str);
- pos = gtkut_stext_find(text, 0, tmp, TRUE);
+ if (tmp[0] == '\0')
+ pos = -1;
+ else
+ pos = gtkut_stext_find(text, 0, tmp, TRUE);
+
if (pos != -1) {
len = get_mbs_len(tmp);
if (len >= 0) {
g_free(compose->sig_str);
compose->sig_str = compose_get_signature_str(compose);
+ if (!compose->sig_str)
+ compose->sig_str = g_strdup("");
gtk_stext_insert(text, NULL, NULL, NULL, compose->sig_str, -1);
gchar *tmp;
tmp = file_read_to_str(sig_file);
+ if (!tmp)
+ return NULL;
sig_str = normalize_newlines(tmp);
g_free(tmp);
}