From 87b7330805c8001619211057657cd384eee9663d Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 8 Feb 2009 11:31:18 +0100 Subject: [PATCH] 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. --- src/lib/subs/wu.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/subs/wu.c b/src/lib/subs/wu.c index d880cd53..4cf5cea8 100644 --- a/src/lib/subs/wu.c +++ b/src/lib/subs/wu.c @@ -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;