diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2012-09-02 08:16:41 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2012-09-02 08:16:41 +0000 |
commit | fbde825da22f4a4a8d5cece52faa4114ed0932c6 (patch) | |
tree | 2f57f6670588436046be133515dae2acd0be9b60 /sys/arch/macppc | |
parent | 7d22147b1c4d7d72a257eb3fbae6f781c7ee3613 (diff) |
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@
Diffstat (limited to 'sys/arch/macppc')
-rw-r--r-- | sys/arch/macppc/dev/pm_direct.h | 7 |
1 files changed, 4 insertions, 3 deletions
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 *); |