[74] in Zephyr Mailing List
xtx_drawtext and empty messages
daemon@ATHENA.MIT.EDU (Greg Wohletz)
Fri Oct 9 14:57:53 1992
To: zephyr@Athena.MIT.EDU
Date: Fri, 09 Oct 92 11:49:21 -0700
From: Greg Wohletz <greg@duke.cs.unlv.edu>
xtx_drawtext dumps core if the instr argument is null. I've made the
following patch to zwgc/draw.c to handle this case:
***************
*** 579,584 ****
--- 579,586 ----
char *mark;
char *set=instr;
+ if(instr == NULL)
+ return;
if (ttymode) {
while (1)
if (set = index(instr, '\n')) {
The reason this is happening is that apparently if you use zwrite and
let it prompt you for the message it actually sends two zephyrgrams,
one empty one which is sent immediately, and another one containing
your message which is sent after you finish typing your message.
Is this what is supposed to happen?
--Greg
greg@cs.unlv.edu