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:
Markus Armbruster 2009-02-08 11:31:18 +01:00
parent 4238323d63
commit 87b7330805

View file

@ -145,10 +145,6 @@ typed_wu(natid from, natid to, char *message, int type)
tel.tel_from = from;
(void)time(&tel.tel_date);
len = strlen(message);
if (CANT_HAPPEN(len > MAXTELSIZE)) {
len = MAXTELSIZE;
message[len] = 0;
}
tel.tel_length = len;
tel.tel_type = type;
iov[0].iov_base = &tel;