Use safe wrappers wherever possible

This commit is contained in:
shdown
2015-08-03 12:50:50 +03:00
parent bc52fae15c
commit c85d16faa4
14 changed files with 31 additions and 52 deletions

View File

@ -73,7 +73,7 @@ char *get_exe_path(const char *argv0) {
}
sasprintf(&path, ":%s", tmp);
} else {
path = strdup(path);
path = sstrdup(path);
}
const char *component;
char *str = path;