https://github.com/geodynamics/citcoms
Revision e195f6d43c859a52b139fe06a7f404382a9cbd38 authored by Leif Strand on 28 November 2006, 07:33:41 UTC, committed by Leif Strand on 28 November 2006, 07:33:41 UTC
  1) avoid potential buffer overflow;
  2) avoid the use of non-standard strndup();
  3) avoid the use of the heap altogether.
(Prompted by unresolved strndup on Mac OS X.)

1 parent 6da3152
History
Tip revision: e195f6d43c859a52b139fe06a7f404382a9cbd38 authored by Leif Strand on 28 November 2006, 07:33:41 UTC
Rewrote expand_str() in order to:
Tip revision: e195f6d
File Mode Size
Citcom.c -rw-r--r-- 5.7 KB
CitcomSFull.c -rw-r--r-- 1.2 KB
CitcomSRegional.c -rw-r--r-- 1.2 KB
Makefile.am -rw-r--r-- 4.2 KB
citcoms.in -rw-r--r-- 1.5 KB
pycitcoms.c -rw-r--r-- 2.7 KB

back to top