From: utzoo!decvax!duke!harpo!eagle!rdb!jes
Newsgroups: net.unix-wizards
Title: long messages are silently truncated
Article-I.D.: rdb.112
Posted: Wed Jul 21 17:19:41 1982
Received: Sun Jul 25 06:03:35 1982


This is a problem with mail.c on PDP-11's.  I found it on USG
4.0, but I suspect it may be found elsewhere.

In function copylet(), the variable k is initialized to the size
of the message.  If a message is longer than 2^15 bytes, bad
things will happen.  The solution is to change the declaration
of k from int to long.

		-- Jon Shopiro