s/hphdr/phdr/ to fix compile with DEBUG
authormcbride <mcbride@openbsd.org>
Tue, 31 Dec 2013 07:15:57 +0000 (07:15 +0000)
committermcbride <mcbride@openbsd.org>
Tue, 31 Dec 2013 07:15:57 +0000 (07:15 +0000)
ok miod

usr.sbin/mkuboot/copy_elf.c

index 5faf726..b6aff8b 100644 (file)
@@ -1,4 +1,4 @@
-/*      $OpenBSD: copy_elf.c,v 1.3 2013/11/11 07:56:02 patrick Exp $       */
+/*      $OpenBSD: copy_elf.c,v 1.4 2013/12/31 07:15:57 mcbride Exp $       */
 
 /*
  * Copyright (c) 2013 Miodrag Vallat.
@@ -157,7 +157,7 @@ ELFNAME(copy_elf)(int ifd, const char *iname, int ofd, const char *oname,
                if (elfoff2h(phdr.p_filesz) != 0) {
 #ifdef DEBUG
                        fprintf(stderr, "copying %p from infile %p\n",
-                          elfoff2h(hphdr.p_filesz), elfoff2h(phdr.p_offset));
+                          elfoff2h(phdr.p_filesz), elfoff2h(phdr.p_offset));
 #endif
                        /* esym will be in the data portion of a region */
                        if (esym >= elfoff2h(phdr.p_vaddr) &&