2004-12-01 [colin] 0.9.12cvs177.3
authorColin Leroy <colin@colino.net>
Wed, 1 Dec 2004 12:54:58 +0000 (12:54 +0000)
committerColin Leroy <colin@colino.net>
Wed, 1 Dec 2004 12:54:58 +0000 (12:54 +0000)
* src/addrharvest.c
Replace sizeof with strlen

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/addrharvest.c

index 27f4c2e432ec6f502380a506212fc4efd16c49fb..e278e96cafc7f029d4de419e21d25ed0aede1d9e 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-01 [colin]     0.9.12cvs177.3
+
+       * src/addrharvest.c
+               Replace sizeof with strlen
+
 2004-12-01 [paul]      0.9.12cvs177.2
 
        * src/addrharvest.c
index 188500a59f1b00addee460ce4465cbe7adcbde0f..fd58fbcc597a4c21084243f3088598480315c422 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.207.2.22 -r 1.207.2.23 src/folderview.c; ) > 0.9.12cvs176.1.patchset
 ( cvs diff -u -r 1.12.2.8 -r 1.12.2.9 src/gtk/prefswindow.c; cvs diff -u -r 1.5.2.6 -r 1.5.2.7 src/gtk/pluginwindow.c; ) > 0.9.12cvs177.1.patchset
 ( cvs diff -u -r 1.6.10.1 -r 1.6.10.2 src/addrharvest.c; ) > 0.9.12cvs177.2.patchset
+( cvs diff -u -r 1.6.10.2 -r 1.6.10.3 src/addrharvest.c; ) > 0.9.12cvs177.3.patchset
index e275b4a039ba19b4313b15177e7cacbd6df382cf..01367360f20097c4365dccf43ebb5544823123ef 100644 (file)
@@ -13,7 +13,7 @@ INTERFACE_AGE=0
 BINARY_AGE=0
 EXTRA_VERSION=177
 EXTRA_RELEASE=
-EXTRA_GTK2_VERSION=.2
+EXTRA_GTK2_VERSION=.3
 
 if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}${EXTRA_RELEASE}${EXTRA_GTK2_VERSION}
index c71ef48f33e59e4f094532a19e9fe5b28e4f842e..e6f00eab961d8f562897b81959db5683258e778c 100644 (file)
@@ -202,7 +202,7 @@ static HeaderEntry *addrharvest_find(
 
                entry = node->data;
                if (g_ascii_strncasecmp(entry->header, name,
-                                       sizeof(entry->header)) == 0 ) {
+                                       strlen(entry->header)) == 0 ) {
                        retVal = entry;
                        break;
                }
@@ -588,7 +588,7 @@ static gboolean addrharvest_check_hdr( GList *listHdr, gchar *buf ) {
                node = listHdr;
                while( node ) {
                        nhdr = node->data;
-                       if (g_ascii_strncasecmp(nhdr, hdr, sizeof(nhdr)) == 0 ) {
+                       if (g_ascii_strncasecmp(nhdr, hdr, strlen(nhdr)) == 0 ) {
                                retVal = TRUE;
                                break;
                        }