mirror of
http://galexander.org/git/simplesshd.git
synced 2025-01-03 19:50:55 +00:00
change a few places that used malloc to use m_malloc instead *shrug*
This commit is contained in:
parent
9efa856065
commit
3c5b02beb9
@ -625,12 +625,12 @@ void run_shell_command(const char* cmd, unsigned int maxfd, char* usershell) {
|
||||
baseshell = basename(usershell);
|
||||
|
||||
if (cmd && !strncmp(cmd, "scp ", 4)) {
|
||||
char *t = malloc(strlen(cmd)+strlen(NDK_EXECUTABLES_PATH)+80);
|
||||
char *t = m_malloc(strlen(cmd)+strlen(NDK_EXECUTABLES_PATH)+80);
|
||||
sprintf(t, "%s/lib%s.so %s", NDK_EXECUTABLES_PATH, "scp",
|
||||
cmd+4);
|
||||
cmd = t;
|
||||
} else if (cmd && !strncmp(cmd, "rsync ", 6)) {
|
||||
char *t = malloc(strlen(cmd)+strlen(NDK_EXECUTABLES_PATH)+80);
|
||||
char *t = m_malloc(strlen(cmd)+strlen(NDK_EXECUTABLES_PATH)+80);
|
||||
char *x = "rsync";
|
||||
if (conf_rsyncbuffer) {
|
||||
x = "buffersu";
|
||||
|
Loading…
Reference in New Issue
Block a user