Module Name: src Committed By: bouyer Date: Sat Jun 6 22:14:31 UTC 2009
Modified Files: src/sbin/atactl [netbsd-5]: atactl.c Log Message: Pull up following revision(s) (requested by mlelstv in ticket #794): sbin/atactl/atactl.c: revision 1.54 make space for a trailing \0 in model,revision and serial buffers. To generate a diff of this commit: cvs rdiff -u -r1.52 -r1.52.2.1 src/sbin/atactl/atactl.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sbin/atactl/atactl.c diff -u src/sbin/atactl/atactl.c:1.52 src/sbin/atactl/atactl.c:1.52.2.1 --- src/sbin/atactl/atactl.c:1.52 Mon Aug 25 00:45:56 2008 +++ src/sbin/atactl/atactl.c Sat Jun 6 22:14:31 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: atactl.c,v 1.52 2008/08/25 00:45:56 dholland Exp $ */ +/* $NetBSD: atactl.c,v 1.52.2.1 2009/06/06 22:14:31 bouyer Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: atactl.c,v 1.52 2008/08/25 00:45:56 dholland Exp $"); +__RCSID("$NetBSD: atactl.c,v 1.52.2.1 2009/06/06 22:14:31 bouyer Exp $"); #endif @@ -856,9 +856,9 @@ device_identify(int argc, char *argv[]) { struct ataparams *inqbuf; - char model[sizeof(inqbuf->atap_model)]; - char revision[sizeof(inqbuf->atap_revision)]; - char serial[sizeof(inqbuf->atap_serial)]; + char model[sizeof(inqbuf->atap_model)+1]; + char revision[sizeof(inqbuf->atap_revision)+1]; + char serial[sizeof(inqbuf->atap_serial)+1]; int needswap = 0; /* No arguments. */