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:
parent
03811b2c97
commit
18acaf0e7d
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue