Module Name: src Committed By: christos Date: Thu Apr 28 00:35:24 UTC 2016
Modified Files: src/sys/dev/dkwedge: dkwedge_gpt.c Log Message: Fix tyop To generate a diff of this commit: cvs rdiff -u -r1.16 -r1.17 src/sys/dev/dkwedge/dkwedge_gpt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/dkwedge/dkwedge_gpt.c diff -u src/sys/dev/dkwedge/dkwedge_gpt.c:1.16 src/sys/dev/dkwedge/dkwedge_gpt.c:1.17 --- src/sys/dev/dkwedge/dkwedge_gpt.c:1.16 Wed Apr 27 20:33:54 2016 +++ src/sys/dev/dkwedge/dkwedge_gpt.c Wed Apr 27 20:35:24 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: dkwedge_gpt.c,v 1.16 2016/04/28 00:33:54 christos Exp $ */ +/* $NetBSD: dkwedge_gpt.c,v 1.17 2016/04/28 00:35:24 christos Exp $ */ /*- * Copyright (c) 2004 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dkwedge_gpt.c,v 1.16 2016/04/28 00:33:54 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dkwedge_gpt.c,v 1.17 2016/04/28 00:35:24 christos Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -267,8 +267,8 @@ dkwedge_discover_gpt(struct disk *pdk, s */ if ((error = dkwedge_add(&dkw)) == EEXIST && strcmp(dkw.dkw_wname, ent_guid_str) != 0) { - char orig[sizeof(dkw.dkw_name)]; - strcpy(orig, dkw.dkw_name); + char orig[sizeof(dkw.dkw_wname)]; + strcpy(orig, dkw.dkw_wname); strcpy(dkw.dkw_wname, ent_guid_str); error = dkwedge_add(&dkw); if (!error)