[2393] in Athena Bugs

home help back first fref pref prev next nref lref last post

brain damage in zwrite and zwgc

daemon@ATHENA.MIT.EDU (Marc Horowitz)
Thu Jun 15 06:35:58 1989

From: Marc Horowitz <marc%BEEBLEBROX.MIT.EDU@ATHENA.MIT.EDU>
To: bugs@ATHENA.MIT.EDU
Reply-To: marc@ATHENA.MIT.EDU
Date: Thu, 15 Jun 89 06:35:29 EDT
    if (signature) {
        message = malloc((unsigned)(strlen(signature)+2));
        (void) strcpy(message, signature);
        msgsize = strlen(message);
        message[msgsize++] = '\n';  /* what is this for?  -mhh */
	^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        message[msgsize++] = '\0';
    } else {
        message = malloc(1);
        message[msgsize++] = '\0';
    }

Why does zwrite add a newline after the end of the signature?  A properly
behaving zwgc shouldn't chop off trailing newlines, but our beloved
client seems to be doing it anyway.

		Marc Horowitz

home help back first fref pref prev next nref lref last post