summaryrefslogtreecommitdiffstats
path: root/sbin/fsdb
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2013-04-25 06:43:20 +0000
committerotto <otto@openbsd.org>2013-04-25 06:43:20 +0000
commit520eb3794df302872019d41e02a630660ff8ea30 (patch)
tree7edc9aa4b6279e25faa3ebfe8e55e7c6c259a342 /sbin/fsdb
parentfix format string; found while scaning the tree for time_t/ino_t problems; (diff)
downloadwireguard-openbsd-520eb3794df302872019d41e02a630660ff8ea30.tar.xz
wireguard-openbsd-520eb3794df302872019d41e02a630660ff8ea30.zip
big int_t/time_t fixes; ok deraadt@ krw@
Diffstat (limited to 'sbin/fsdb')
-rw-r--r--sbin/fsdb/fsdb.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/fsdb/fsdb.c b/sbin/fsdb/fsdb.c
index 07d1b96edb7..e65286dbed6 100644
--- a/sbin/fsdb/fsdb.c
+++ b/sbin/fsdb/fsdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fsdb.c,v 1.26 2013/04/24 13:46:29 deraadt Exp $ */
+/* $OpenBSD: fsdb.c,v 1.27 2013/04/25 06:43:20 otto Exp $ */
/* $NetBSD: fsdb.c,v 1.7 1997/01/11 06:50:53 lukem Exp $ */
/*-
@@ -284,10 +284,11 @@ cmdloop(void)
static ino_t ocurrent;
-#define GETINUM(ac,inum) inum = strtoul(argv[ac], &cp, 0); \
+#define GETINUM(ac,inum) inum = strtoull(argv[ac], &cp, 0); \
if (inum < ROOTINO || inum > maxino || cp == argv[ac] || *cp != '\0' ) { \
- printf("inode %llu out of range; range is [%d,%d]\n", \
- (unsigned long long)inum, ROOTINO, maxino); \
+ printf("inode %llu out of range; range is [%llu,%llu]\n", \
+ (unsigned long long)inum, (unsigned long long)ROOTINO, \
+ (unsigned long long)maxino); \
return 1; \
}