diff options
author | 1997-09-17 10:06:32 +0000 | |
---|---|---|
committer | 1997-09-17 10:06:32 +0000 | |
commit | 4c3b78e7a562d54c654f0d96668d883834ef37dd (patch) | |
tree | 820473cc44284a1912492ffcd8eb2de8b4ff1477 | |
parent | little missing space, argh (diff) | |
download | wireguard-openbsd-4c3b78e7a562d54c654f0d96668d883834ef37dd.tar.xz wireguard-openbsd-4c3b78e7a562d54c654f0d96668d883834ef37dd.zip |
paranoia on the alpha
-rw-r--r-- | sbin/modload/modload.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/modload/modload.c b/sbin/modload/modload.c index 4dd9ce77d29..5200eb44527 100644 --- a/sbin/modload/modload.c +++ b/sbin/modload/modload.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modload.c,v 1.18 1997/09/17 00:57:45 weingart Exp $ */ +/* $OpenBSD: modload.c,v 1.19 1997/09/17 10:06:32 deraadt Exp $ */ /* $NetBSD: modload.c,v 1.13 1995/05/28 05:21:58 jtc Exp $ */ /* @@ -505,7 +505,7 @@ main(argc, argv) if (post) { struct lmc_stat sbuf; char name[MAXLKMNAME] = ""; - char id[16], type[16], offset[16]; + char id[16], type[16], offset[32]; sbuf.id = resrv.slot; sbuf.name = name; @@ -513,7 +513,7 @@ main(argc, argv) err(15, "error fetching module stats for post-install"); sprintf(id, "%d", sbuf.id); sprintf(type, "0x%x", sbuf.type); - sprintf(offset, "%ld", sbuf.offset); + sprintf(offset, "%lu", sbuf.offset); /* * XXX * The modload docs say that drivers can install bdevsw & |