common: prevent buffer overflow
commit4db3aeeda15cd00c603746bcd970c61451e92090
authorTim Blechmann <tim@klingt.org>
Sat, 10 Dec 2011 10:40:01 +0000 (10 11:40 +0100)
committerTim Blechmann <tim@klingt.org>
Sat, 10 Dec 2011 10:46:52 +0000 (10 11:46 +0100)
tree0344e07411a18db18ddf5e6bf48fcd4f9f29b659
parentd7629693154cb717ffbb06bf6c470aa40faeabb8
common: prevent buffer overflow

sc_AppendToPath was not safe, because the available space was unknown. we
now pass the capacity as function argument.

Signed-off-by: Tim Blechmann <tim@klingt.org>
common/SC_DirUtils.cpp
include/common/SC_DirUtils.h
lang/LangPrimSource/PyrPrimitive.cpp
lang/LangSource/PyrLexer.cpp
lang/LangSource/SC_LanguageClient.cpp
lang/LangSource/SC_LibraryConfig.cpp
server/scsynth/SC_Lib_Cintf.cpp
server/scsynth/SC_World.cpp