Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/dkwedge Fix tyop



details:   https://anonhg.NetBSD.org/src/rev/93f558f7f312
branches:  trunk
changeset: 815069:93f558f7f312
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Apr 28 00:35:24 2016 +0000

description:
Fix tyop

diffstat:

 sys/dev/dkwedge/dkwedge_gpt.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r a6f156de8478 -r 93f558f7f312 sys/dev/dkwedge/dkwedge_gpt.c
--- a/sys/dev/dkwedge/dkwedge_gpt.c     Thu Apr 28 00:33:54 2016 +0000
+++ b/sys/dev/dkwedge/dkwedge_gpt.c     Thu Apr 28 00:35:24 2016 +0000
@@ -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 @@
                 */
                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)



Home | Main Index | Thread Index | Old Index