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

back to top