+2005-02-15 [colin] 1.0.1cvs7
+
+ * src/compose.c
+ * src/procmime.c
+ Optimize (constant instead of strlen). Thanks
+ Alfons for the hint.
+
2005-02-14 [colin] 1.0.1cvs6
* src/compose.c
( cvs diff -u -r 1.473 -r 1.474 src/compose.c; ) > 1.0.1cvs4.patchset
( cvs diff -u -r 1.71 -r 1.72 src/filtering.c; ) > 1.0.1cvs5.patchset
( cvs diff -u -r 1.474 -r 1.475 src/compose.c; cvs diff -u -r 1.103 -r 1.104 src/procmime.c; ) > 1.0.1cvs6.patchset
+( cvs diff -u -r 1.475 -r 1.476 src/compose.c; cvs diff -u -r 1.104 -r 1.105 src/procmime.c; ) > 1.0.1cvs7.patchset
MICRO_VERSION=1
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=6
+EXTRA_VERSION=7
EXTRA_RELEASE=
if test \( $EXTRA_VERSION -eq 0 \) -o \( "x$EXTRA_RELEASE" != "x" \); then
g_free(chars);
if (encoding == ENC_8BIT || encoding == ENC_7BIT) {
- if (!strncmp(buf, "From ", strlen("From ")) ||
+ if (!strncmp(buf, "From ", sizeof("From ")-1) ||
strstr(buf, "\nFrom ") != NULL) {
encoding = ENC_QUOTED_PRINTABLE;
}
while (fgets(inbuf, sizeof(inbuf), infp) != NULL) {
qp_encode_line(outbuf, inbuf);
- if (!strncmp("From ", outbuf, strlen("From "))) {
+ if (!strncmp("From ", outbuf, sizeof("From ")-1)) {
gchar *tmpbuf = outbuf;
- tmpbuf += strlen("From ");
+ tmpbuf += sizeof("From ")-1;
fputs("=46rom ", outfp);
fputs(tmpbuf, outfp);