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
Tip revision: e195f6d43c859a52b139fe06a7f404382a9cbd38 authored by Leif Strand on 28 November 2006, 07:33:41 UTC
Rewrote expand_str() in order to:
Rewrote expand_str() in order to:
Tip revision: e195f6d
File | Mode | Size |
---|---|---|
CitcomSmodule.c | -rw-r--r-- | 1.9 KB |
CitcomSmodule.h | -rw-r--r-- | 1.3 KB |
Makefile.am | -rw-r--r-- | 2.0 KB |
Regionalmodule.c | -rw-r--r-- | 1.8 KB |
advdiffu.c | -rw-r--r-- | 3.5 KB |
advdiffu.h | -rw-r--r-- | 1.8 KB |
bindings.c | -rw-r--r-- | 9.3 KB |
bindings.h | -rw-r--r-- | 1.2 KB |
exceptions.c | -rw-r--r-- | 1.1 KB |
exceptions.h | -rw-r--r-- | 1.2 KB |
getProperty.h | -rw-r--r-- | 3.0 KB |
initial_conditions.c | -rw-r--r-- | 3.8 KB |
initial_conditions.h | -rw-r--r-- | 2.0 KB |
mesher.c | -rw-r--r-- | 4.9 KB |
mesher.h | -rw-r--r-- | 1.5 KB |
misc.c | -rw-r--r-- | 9.2 KB |
misc.h | -rw-r--r-- | 3.6 KB |
outputs.c | -rw-r--r-- | 2.5 KB |
outputs.h | -rw-r--r-- | 1.6 KB |
setProperties.c | -rw-r--r-- | 27.5 KB |
setProperties.h | -rw-r--r-- | 3.3 KB |
stokes_solver.c | -rw-r--r-- | 7.4 KB |
stokes_solver.h | -rw-r--r-- | 3.1 KB |
Computing file changes ...