pkgsrc/comms/dl-ezkit/patches/patch-ac
2005-07-20 01:43:01 +00:00

21 lines
516 B
Text

$NetBSD: patch-ac,v 1.2 2005/07/20 01:43:01 kristerw Exp $
--- lserial.c.orig Wed Dec 9 17:54:19 1998
+++ lserial.c Wed Jul 20 03:39:32 2005
@@ -13,7 +13,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <malloc.h>
#include <string.h>
#include <termios.h>
#include <fcntl.h>
@@ -331,7 +330,7 @@
while (len > 0)
{
-#define MAX_TXMSG 256
+#define MAX_TXMSG 128
unsigned long txbuf[MAX_TXMSG];
int count = (len > MAX_TXMSG-2) ? MAX_TXMSG-2 : len;