Home
last modified time | relevance | path

Searched refs:newCmd (Results 1 – 1 of 1) sorted by relevance

/kernel/liteos_a/apps/shell/src/
Dshmsg.c495 char *newCmd = NULL; in PreHandleCmdline() local
522 newCmd = (char *)malloc(newLen + 1); in PreHandleCmdline()
523 if (newCmd == NULL) { in PreHandleCmdline()
529 err = memcpy_s(newCmd, newLen, execCmd, execLen); in PreHandleCmdline()
536 … err = memcpy_s(newCmd + execLen, newLen - execLen, shiftStr + removeLen, shiftLen - removeLen); in PreHandleCmdline()
542 newCmd[newLen] = '\0'; in PreHandleCmdline()
544 *output = newCmd; in PreHandleCmdline()
553 free(newCmd); in PreHandleCmdline()