po/POTFILES.in
authorMelvin Hadasht <melvin.hadasht@free.fr>
Thu, 13 Jun 2002 12:06:35 +0000 (12:06 +0000)
committerMelvin Hadasht <melvin.hadasht@free.fr>
Thu, 13 Jun 2002 12:06:35 +0000 (12:06 +0000)
        Added src/string_match.c
src/string_match.c
Fixed possible buffer overflow.
Corrected typo.
Added missing config.h header.
src/prefs_common.c
src/prefs_matcher.c
src/prefs_scoring.c
Made some strings translatable (missing _(..)).

ChangeLog.claws
configure.in
po/POTFILES.in
src/prefs_common.c
src/prefs_matcher.c
src/prefs_scoring.c
src/string_match.c

index 7f943a00baa4190a5bd4b34156e2c857a6d31e3a..9982049dee406d44a0620d3323879e7164460ae4 100644 (file)
@@ -1,3 +1,16 @@
+2002-06-13 [melvin]    0.7.6claws44
+
+       * po/POTFILES.in
+               Added src/string_match.c
+       * src/string_match.c
+               Fixed possible buffer overflow.
+               Corrected typo.
+               Added missing config.h header.
+       * src/prefs_common.c
+         src/prefs_matcher.c
+         src/prefs_scoring.c
+               Made some strings translatable (missing _(..)).
+
 2002-06-13 [melvin]    0.7.6claws43
 
        * README.claws
index 3887ffd16e0fbec33db0d3e70e4e2a55ac54d429..cbdc43b1024c2bd89bdbf4097c90d0e7f9f4ba24 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=7
 MICRO_VERSION=6
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws43
+EXTRA_VERSION=claws44
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 088af780b130a4a31c7eb2cc6becb1242c00e412..3bfbd7939ac3b7f9446bed08e18542d7dafb1a1e 100644 (file)
@@ -97,6 +97,7 @@ src/socket.c
 src/sourcewindow.c
 src/ssl.c
 src/statusbar.c
+src/string_match.c
 src/summary_search.c
 src/summaryview.c
 src/syldap.c
index a732089bb4e3900d07fd248e1f9f337abde00f8d..bd1b6af5be03df162cef9772d8cd4d29d19526b1 100644 (file)
@@ -2768,7 +2768,7 @@ static void prefs_interface_create(void)
        gtk_signal_connect (GTK_OBJECT (button_keybind), "clicked",
                            GTK_SIGNAL_FUNC (prefs_keybind_select), NULL);
 
-       PACK_FRAME(vbox1, frame_pixmap_theme, "Pixmap theme");
+       PACK_FRAME(vbox1, frame_pixmap_theme, _("Pixmap theme"));
        
        vbox_pixmap_theme = gtk_vbox_new(FALSE, 0);
        gtk_widget_show(vbox_pixmap_theme);
index d2a1b5a109b072c55f5c8f856cee1b0a51f0f192..20de31215573380b052e01fc9fef26f252b19a37 100644 (file)
@@ -551,7 +551,7 @@ static void prefs_matcher_create(void)
                                        GTK_POLICY_AUTOMATIC,
                                        GTK_POLICY_AUTOMATIC);
 
-       title[0] = ("Registered rules");
+       title[0] = _("Registered rules");
        cond_clist = gtk_clist_new_with_titles(1, title);
        gtk_widget_show (cond_clist);
        gtk_container_add (GTK_CONTAINER (cond_scrolledwin), cond_clist);
index 3c25470a2d1331a3f3314cbcacc99656f49acc89..ff9005ef0e9a3e79d0a16bcb1d91192a37254b8f 100644 (file)
@@ -300,7 +300,7 @@ static void prefs_scoring_create(void)
                                        GTK_POLICY_AUTOMATIC,
                                        GTK_POLICY_AUTOMATIC);
 
-       title[0] = ("Registered rules");
+       title[0] = _("Registered rules");
        cond_clist = gtk_clist_new_with_titles(1, title);
        gtk_widget_show (cond_clist);
        gtk_container_add (GTK_CONTAINER (cond_scrolledwin), cond_clist);
index 0517e4fbb8548015e4ac197fdd626e64e768e473..52e5066d1595d4dbb876f1271d12a8c76c5579d7 100644 (file)
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#ifdef HAVE_CONFIG_H
+#  include "config.h"
+#endif
+
 #include "intl.h"
 #include "string_match.h"
 
@@ -63,8 +67,11 @@ gchar *string_remove_match(gchar *buf, gint buflen, gchar * txt, regex_t *preg)
                        }
                } while (txt[j] && i < buflen - 1);
                buf[i] = 0x00;
-               if (buf[0] == 0x00)
-                       strcpy(buf, _("(Subject cleared by regexp)"));
+               if (buf[0] == 0x00) {
+                       strncpy(buf, _("(Subject cleared by RegExp)"),
+                                       buflen - 1);
+                       buf[buflen - 1] = 0x00;
+               }
                return buf;             
        }
        return txt;