why is strncpy giving me a segmentation fault?
for (int i = 0; i < cmd_argc; i++) {
    char new_str[strlen(cmd_argv[i])];
    while (cmd_argv[i][j]) {
        if (cmd_argv[i][j] != '\r' && cmd_argv[i][j] != '\n' && cmd_argv[i][j] != '\0') {
            len++;
            new_str[j] = cmd_argv[i][j];
        }
        strncpy(cmd_argv[i], new_str, len);
    }
}