Date: Thu, 7 May 1998 05:20:02 -0700 (PDT) From: Sakari Jalovaara <sja@tekla.fi> To: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/4582: integer overflow in 'sa -km' Message-ID: <199805071220.FAA14613@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/4582; it has been noted by GNATS. From: Sakari Jalovaara <sja@tekla.fi> 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 <stdlib.h>" 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199805071220.FAA14613>