f39457d
diff -up cups-1.5.0/notifier/dbus.c.str3947 cups-1.5.0/notifier/dbus.c
f39457d
--- cups-1.5.0/notifier/dbus.c.str3947	2011-03-04 16:55:59.000000000 +0000
f39457d
+++ cups-1.5.0/notifier/dbus.c	2011-09-28 10:42:56.298760622 +0100
e5e9e3b
@@ -4,7 +4,7 @@
f39457d
  *   D-Bus notifier for CUPS.
e5e9e3b
  *
f39457d
  *   Copyright 2008-2010 by Apple Inc.
e5e9e3b
- *   Copyright (C) 2007 Red Hat, Inc.
e5e9e3b
+ *   Copyright (C) 2011 Red Hat, Inc.
e5e9e3b
  *   Copyright (C) 2007 Tim Waugh <twaugh@redhat.com>
e5e9e3b
  *   Copyright 1997-2005 by Easy Software Products.
e5e9e3b
  *
e5e9e3b
@@ -423,10 +423,11 @@ main(int  argc,				/* I - Number of comm
e5e9e3b
 	  p = printer_reasons;
e5e9e3b
 	  for (i = 0; i < attr->num_values; i++)
e5e9e3b
 	  {
e5e9e3b
-	    strcpy(p, attr->values[i].string.text);
e5e9e3b
-	    p += strlen(p);
e5e9e3b
 	    if (i)
e5e9e3b
 	      *p++ = ',';
e5e9e3b
+
e5e9e3b
+	    strcpy(p, attr->values[i].string.text);
e5e9e3b
+	    p += strlen(p);
e5e9e3b
 	  }
e5e9e3b
 	  dbus_message_iter_append_string(&iter, &printer_reasons);
e5e9e3b
 	}