diff options
author | Diane Bruce <db@FreeBSD.org> | 2012-06-05 19:23:38 +0000 |
---|---|---|
committer | Diane Bruce <db@FreeBSD.org> | 2012-06-05 19:23:38 +0000 |
commit | 1534767a3735aa0afce683fde4e0703faac2407c (patch) | |
tree | dab7303b121a3bafd27c633116234b416e1e1bfc /comms/nec2c/files/patch-misc.c | |
parent | Switch to OptionsNG (diff) |
- Fix comms/nec2c for large allocations
PR: ports/168448
Submitted by: doconnor@gsoft.com.au
Diffstat (limited to 'comms/nec2c/files/patch-misc.c')
-rw-r--r-- | comms/nec2c/files/patch-misc.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/comms/nec2c/files/patch-misc.c b/comms/nec2c/files/patch-misc.c new file mode 100644 index 000000000000..809e45ff32da --- /dev/null +++ b/comms/nec2c/files/patch-misc.c @@ -0,0 +1,20 @@ +--- misc.c.orig 2012-06-05 13:35:29.000000000 -0500 ++++ misc.c 2012-06-05 13:36:34.000000000 -0500 +@@ -192,7 +192,7 @@ + + /*** Memory allocation/freeing utils ***/ + +-void mem_alloc( void **ptr, int req ) ++void mem_alloc( void **ptr, size_t req ) + { + free_ptr( ptr ); + *ptr = malloc( req ); +@@ -203,7 +203,7 @@ + + /*------------------------------------------------------------------------*/ + +-void mem_realloc( void **ptr, int req ) ++void mem_realloc( void **ptr, size_t req ) + { + *ptr = realloc( *ptr, req ); + if( *ptr == NULL ) |