Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/elf2ecoff fix printf format.



details:   https://anonhg.NetBSD.org/src/rev/ac5174bdfb99
branches:  trunk
changeset: 821992:ac5174bdfb99
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Feb 24 13:03:25 2017 +0000

description:
fix printf format.

diffstat:

 usr.bin/elf2ecoff/elf2ecoff.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 84f71124e855 -r ac5174bdfb99 usr.bin/elf2ecoff/elf2ecoff.c
--- a/usr.bin/elf2ecoff/elf2ecoff.c     Fri Feb 24 12:24:25 2017 +0000
+++ b/usr.bin/elf2ecoff/elf2ecoff.c     Fri Feb 24 13:03:25 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: elf2ecoff.c,v 1.31 2017/02/23 18:49:00 christos Exp $  */
+/*     $NetBSD: elf2ecoff.c,v 1.32 2017/02/24 13:03:25 christos Exp $  */
 
 /*
  * Copyright (c) 1997 Jonathan Stone
@@ -512,7 +512,7 @@
        if ((off = lseek(file, offset, SEEK_SET)) < 0)
                err(1, "%s: fseek", name);
        if ((tmp = malloc(len)) == NULL)
-               err(1, "%s: Can't allocate %td bytes", name, len);
+               err(1, "%s: Can't allocate %jd bytes", name, (intmax_t)len);
        count = read(file, tmp, len);
        if (count != len)
                err(1, "%s: short read", name);



Home | Main Index | Thread Index | Old Index