Hi Pascal,

I send a patch to upstream nearly 2 month ago but still no new release yet. Since I classify this as an important bug I have enclosed the patch to this mail and ask if you would not consider adding it as a Debian Patch?

--- mail-notification-3.0.dfsg.1/src/mn-conf.c  2006-05-18
15:23:42.000000000 +0200
+++ mail-notification-3.0-new/src/mn-conf.c     2006-07-09
13:29:05.000000000 +0200
@@ -1119,14 +1119,13 @@
   if (strip_format)
     {
       GString *stripped;
-      char *start;
-      char *p;
+      size_t p;

-      stripped = g_string_new(NULL);
-
-      for (start = command; (p = strstr(start, "%s")); start = p + 2)
-       g_string_append_len(stripped, start, p - start);
-      g_string_append(stripped, start);
+      stripped = g_string_new(command);
+      p = strcspn(command, " ");
+
+      if (p > 0)
+       stripped = g_string_truncate(stripped, p);

       g_free(command);
       command = g_string_free(stripped, FALSE);


--
Hilsen/Regards
Michael Rasmussen

Get my public GnuPG keys:
michael <at> rasmussen <dot> cc
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xD3C9A00E
mir <at> datanom <dot> net
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE501F51C
mir <at> miras <dot> org
http://keyserver.veridis.com:11371/pks/lookup?op=get&search=0xE3E80917
--------------------------------------------------------------
BOFH excuse #155:

Dumb terminal

Attachment: pgp7qegZGaG2N.pgp
Description: PGP signature

Reply via email to