Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt Check size of correct buffer. Note, just being ped...



details:   https://anonhg.NetBSD.org/src/rev/67e2df741bcb
branches:  trunk
changeset: 802752:67e2df741bcb
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Tue Sep 30 20:23:23 2014 +0000

description:
Check size of correct buffer.  Note, just being pedantic as the buffer
being checked is the same size as the one that should have been checked.

diffstat:

 sbin/gpt/show.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 4f18da39f45e -r 67e2df741bcb sbin/gpt/show.c
--- a/sbin/gpt/show.c   Tue Sep 30 19:38:25 2014 +0000
+++ b/sbin/gpt/show.c   Tue Sep 30 20:23:23 2014 +0000
@@ -33,7 +33,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/show.c,v 1.14 2006/06/22 22:22:32 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: show.c,v 1.19 2014/09/30 18:00:00 christos Exp $");
+__RCSID("$NetBSD: show.c,v 1.20 2014/09/30 20:23:23 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -191,7 +191,7 @@
                printf("Size: %llu\n", (long long)m->map_size);
 
        gpt_uuid_snprintf(s1, sizeof(s1), "%s", ent->ent_type);
-       gpt_uuid_snprintf(s2, sizeof(s1), "%d", ent->ent_type);
+       gpt_uuid_snprintf(s2, sizeof(s2), "%d", ent->ent_type);
        if (strcmp(s1, s2) == 0)
                strlcpy(s1, "unknown", sizeof(s1));
        printf("Type: %s (%s)\n", s1, s2);



Home | Main Index | Thread Index | Old Index