1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/misc/estic/files/patch-areacode.c
Dirk Meyer b111b35ebf - add LICENSE
- use distribution patch
- extend pkg-message
- protect config file
- cleanup staged install
- make portlint happier
2017-01-29 14:47:22 +00:00

12 lines
521 B
C

--- areacode/areacode.c.orig 1997-02-16 10:24:50 UTC
+++ areacode/areacode.c
@@ -352,7 +352,7 @@ static void LoadTable (AreaCodeDesc* Des
/* Load a part of the table into memory */
{
u32 SpaceNeeded = (Desc->Last - Desc->First + 1) * sizeof (u32);
- Desc->Table = malloc (SpaceNeeded);
+ Desc->Table = (u32*) malloc (SpaceNeeded);
if (Desc->Table == 0) {
/* Out of memory. There is no problem with this now since we do
* not really need the table in core memory (it speeds things up,