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
Makefile.am -rw-r--r-- 1.1 KB
array2d.cc -rw-r--r-- 3.9 KB
asap.py -rw-r--r-- 1.5 KB
exchange.py -rwxr-xr-x 4.9 KB
hrothgar.py -rw-r--r-- 1.5 KB
signon.py -rwxr-xr-x 2.4 KB
test1.sh -rwxr-xr-x 2.3 KB
test2.sh -rwxr-xr-x 4.2 KB
test5.sh -rwxr-xr-x 2.6 KB

back to top