From 1534767a3735aa0afce683fde4e0703faac2407c Mon Sep 17 00:00:00 2001 From: Diane Bruce Date: Tue, 5 Jun 2012 19:23:38 +0000 Subject: - Fix comms/nec2c for large allocations PR: ports/168448 Submitted by: doconnor@gsoft.com.au --- comms/nec2c/files/patch-nec2c.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 comms/nec2c/files/patch-nec2c.h (limited to 'comms/nec2c/files/patch-nec2c.h') diff --git a/comms/nec2c/files/patch-nec2c.h b/comms/nec2c/files/patch-nec2c.h new file mode 100644 index 000000000000..416e9acd8acc --- /dev/null +++ b/comms/nec2c/files/patch-nec2c.h @@ -0,0 +1,13 @@ +--- nec2c.h.orig 2012-06-05 13:34:14.000000000 -0500 ++++ nec2c.h 2012-06-05 13:34:45.000000000 -0500 +@@ -201,8 +201,8 @@ + void secnds(double *x); + int stop(int flag); + int load_line(char *buff, FILE *pfile); +-void mem_alloc( void **ptr, int req ); +-void mem_realloc( void **ptr, int req ); ++void mem_alloc( void **ptr, size_t req ); ++void mem_realloc( void **ptr, size_t req ); + void free_ptr( void **ptr ); + /* somnec.c */ + void somnec(double epr, double sig, double fmhz); -- cgit v1.2.3