[systemd-devel] [PATCH] fix strange addition idiom

Kurt H Maier karmaflux at gmail.com
Wed Apr 13 15:12:15 PDT 2011


--- systemd-pulled/src/reply-password.c	2011-04-13 18:05:52.873135496 -0400
+++ systemd/src/reply-password.c	2011-04-13 18:07:59.832451810 -0400
@@ -82,7 +82,7 @@
                 }

                 truncate_nl(packet+1);
-                length = 1 + strlen(packet+1) + 1;
+                length = 2 + strlen(packet+1);
         } else if (streq(argv[1], "0")) {
                 packet[0] = '-';
                 length = 1;


More information about the systemd-devel mailing list