From owner-freebsd-bugs Thu May 7 05:22:55 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA05850 for freebsd-bugs-outgoing; Thu, 7 May 1998 05:22:55 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA05841 for ; Thu, 7 May 1998 05:22:52 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id FAA14613; Thu, 7 May 1998 05:20:02 -0700 (PDT) Date: Thu, 7 May 1998 05:20:02 -0700 (PDT) Message-Id: <199805071220.FAA14613@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.ORG From: Sakari Jalovaara Subject: Re: bin/4582: integer overflow in 'sa -km' Reply-To: Sakari Jalovaara Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/4582; it has been noted by GNATS. From: Sakari Jalovaara To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: Re: bin/4582: integer overflow in 'sa -km' Date: Thu, 7 May 1998 15:13:06 +0300 This (sa -km) needs a one-line fix. /usr/src/usr.sbin/sa/usrdb.c prints a double using quad format: printf("%12qu%s", ui->ui_mem / t, "k"); which should be printf("%12qu%s", (u_quad_t) (ui->ui_mem / t), "k"); While you are in usrdb.c, might as well add a missing "#include " to get a prototype for user_from_uid(3). cc -fsyntax-only -Wformat usrdb.c ++sja To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message