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
__vault__.odb -rw-r--r-- 1.1 KB
full-sphere.odb -rw-r--r-- 1.2 KB
full.odb -rw-r--r-- 1.2 KB
incomp-newtonian.odb -rw-r--r-- 1.2 KB
incomp-non-newtonian.odb -rw-r--r-- 1.2 KB
regional-sphere.odb -rw-r--r-- 1.2 KB
regional.odb -rw-r--r-- 1.2 KB
temp.odb -rw-r--r-- 1.2 KB

back to top