Author: jmg Date: Wed Feb 11 07:44:53 2015 New Revision: 278560 URL: https://svnweb.freebsd.org/changeset/base/278560
Log: add an assert in case the sizeof int ever becomes bigger.. Then we will have issues, at least we'll know where one of them are.. Submitted by: Erich Dollansky Modified: head/contrib/top/utils.c Modified: head/contrib/top/utils.c ============================================================================== --- head/contrib/top/utils.c Wed Feb 11 07:38:07 2015 (r278559) +++ head/contrib/top/utils.c Wed Feb 11 07:44:53 2015 (r278560) @@ -58,6 +58,7 @@ char *str; * ever convert will be 2^32-1, which is 10 * digits. */ +_Static_assert(sizeof(int) <= 4, "buffer too small for this sized int"); char *itoa(val) _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"