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

Kurt H Maier karmaflux at gmail.com
Wed Apr 13 17:21:06 PDT 2011


index bd55e65..ce902ef 100644
--- a/src/reply-password.c
+++ b/src/reply-password.c
@@ -82,6 +82,7 @@ int main(int argc, char *argv[]) {
                 }

                 truncate_nl(packet+1);
+               /* prefix + packet string + NUL in this order */
                 length = 1 + strlen(packet+1) + 1;
         } else if (streq(argv[1], "0")) {
                 packet[0] = '-';


More information about the systemd-devel mailing list