make notification_convert_header obey const correctness (next step will be fixing...
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 23 Jun 2002 17:51:28 +0000 (17:51 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 23 Jun 2002 17:51:28 +0000 (17:51 +0000)
ChangeLog.claws
configure.in
src/messageview.c

index 3113bdd..ef9391a 100644 (file)
@@ -1,3 +1,9 @@
+2002-06-23 [alfons]    0.7.8claws19
+
+       * src/messageview.c
+               make notification_convert_header obey const correctness
+               (next step will be fixing the broken return receipt)
+
 2002-06-23 [paul]      0.7.8claws18
 
        * src/messageview.c
index d6c0370..233a8e0 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=8
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws18
+EXTRA_VERSION=claws19
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 8aa0a4f..6605c6a 100644 (file)
@@ -154,14 +154,19 @@ void messageview_init(MessageView *messageview)
        /*messageview_set_font(messageview);*/
 }
 
-static void notification_convert_header(gchar *dest, gint len, gchar *src,
+static void notification_convert_header(gchar *dest, gint len, 
+                                       const gchar *src_,
                                        gint header_len)
 {
-       g_return_if_fail(src != NULL);
+       char *src;
+
+       g_return_if_fail(src_ != NULL);
        g_return_if_fail(dest != NULL);
 
        if (len < 1) return;
 
+       Xstrndup_a(src, src_, len, return);
+
        remove_return(src);
 
        if (is_ascii_str(src)) {