opnsense-ports/devel/dev86/files/patch-as__genlist.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
423 B
C

--- as/genlist.c.orig 2001-06-23 22:13:19.000000000 +0200
+++ as/genlist.c 2013-03-10 18:40:54.000000000 +0100
@@ -119,7 +119,7 @@ register char *where;
power = 5; /* actually 1 more than power */
do
{
- for (digit = '0', power_of_10 = (powers_of_10 - 1)[power];
+ for (digit = '0', power_of_10 = powers_of_10[power - 1];
num >= power_of_10; num -= power_of_10)
++digit;
if (power <= width)