Searched refs:dest_len (Results 1 – 1 of 1) sorted by relevance
155 int dest_len = strlen(argv[1]); in shell_cmd_cd() local157 if (dest_len >= SHELL_CWD_MAX_SIZE - 1) in shell_cmd_cd()172 char *new_path = (char *)malloc(dest_len + 2); in shell_cmd_cd()173 memset(new_path, 0, dest_len + 2); in shell_cmd_cd()174 strncpy(new_path, argv[1], dest_len); in shell_cmd_cd()181 shell_current_path[dest_len] = '\0'; in shell_cmd_cd()191 if (dest_len > 2) in shell_cmd_cd()197 int new_len = current_dir_len + dest_len - dest_offset; in shell_cmd_cd()