svn commit: r278560 - head/contrib/top
John-Mark Gurney
jmg at FreeBSD.org
Wed Feb 11 07:44:54 UTC 2015
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)
More information about the svn-src-head
mailing list