Don't write junk bits to unused bytes of telegram files

There are holes in struct telstr, which typed_wu() neglected to
initialize.  Fix that.
This commit is contained in:
Markus Armbruster 2008-03-14 21:22:32 +01:00
parent 03811b2c97
commit 18acaf0e7d

View file

@ -141,6 +141,7 @@ typed_wu(natid from, natid to, char *message, int type)
logerror("telegram 'open' of %s (#%d) failed", box, to);
return -1;
}
memset(&tel, 0, sizeof(tel));
tel.tel_from = from;
(void)time(&tel.tel_date);
len = strlen(message);