Don't check MAXTELSIZE in typed_wu()
The previous commit lifted the MAXTELSIZE restriction for telegram files. Note that getele() is still limited by it.
This commit is contained in:
parent
4238323d63
commit
87b7330805
1 changed files with 0 additions and 4 deletions
|
@ -145,10 +145,6 @@ typed_wu(natid from, natid to, char *message, int type)
|
||||||
tel.tel_from = from;
|
tel.tel_from = from;
|
||||||
(void)time(&tel.tel_date);
|
(void)time(&tel.tel_date);
|
||||||
len = strlen(message);
|
len = strlen(message);
|
||||||
if (CANT_HAPPEN(len > MAXTELSIZE)) {
|
|
||||||
len = MAXTELSIZE;
|
|
||||||
message[len] = 0;
|
|
||||||
}
|
|
||||||
tel.tel_length = len;
|
tel.tel_length = len;
|
||||||
tel.tel_type = type;
|
tel.tel_type = type;
|
||||||
iov[0].iov_base = &tel;
|
iov[0].iov_base = &tel;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue