From fbde825da22f4a4a8d5cece52faa4114ed0932c6 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sun, 2 Sep 2012 08:16:41 +0000 Subject: Bump the buffer size from 32 to 128 bytes, because some responses may have 120 bytes of data. Diff by briggs@NetBSD, pointed out by and ok miod@ --- sys/arch/macppc/dev/pm_direct.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch/macppc') diff --git a/sys/arch/macppc/dev/pm_direct.h b/sys/arch/macppc/dev/pm_direct.h index 58e27691e11..6b0c6667cc3 100644 --- a/sys/arch/macppc/dev/pm_direct.h +++ b/sys/arch/macppc/dev/pm_direct.h @@ -1,5 +1,5 @@ -/* $OpenBSD: pm_direct.h,v 1.12 2011/05/14 12:01:16 mpi Exp $ */ -/* $NetBSD: pm_direct.h,v 1.5 1999/07/12 15:54:55 tsubai Exp $ */ +/* $OpenBSD: pm_direct.h,v 1.13 2012/09/02 08:16:40 mpi Exp $ */ +/* $NetBSD: pm_direct.h,v 1.7 2005/01/07 04:59:58 briggs Exp $ */ /* * Copyright (C) 1997 Takashi Hamada @@ -44,7 +44,8 @@ typedef struct { short num_data; /* number of data */ char *s_buf; /* pointer to buffer for sending */ char *r_buf; /* pointer to buffer for receiving */ - char data[32]; /* data buffer (is it too much?) */ + char data[128]; /* data buffer (is it too much?) */ + /* null command seen w/ 120 data bytes */ } PMData; int pmgrop(PMData *); -- cgit v1.2.3