]> git.pond.sub.org Git - empserver/commitdiff
Don't check MAXTELSIZE in typed_wu()
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 8 Feb 2009 10:31:18 +0000 (11:31 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 8 Feb 2009 13:21:15 +0000 (14:21 +0100)
The previous commit lifted the MAXTELSIZE restriction for telegram
files.  Note that getele() is still limited by it.

src/lib/subs/wu.c

index d880cd534ea52fec23c4c13edcdf5d57050bcf72..4cf5cea84d075ca59f54e125d87e1d69024322d2 100644 (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;