small fix of strlen(offset+1) to strlen(offset)+1

This commit is contained in:
nova
2026-05-25 11:24:58 +02:00
parent 905f6e8588
commit f6380ddeda

View File

@@ -124,8 +124,8 @@ char* parse_cmd(const char *cmd, file *f){
if (offset) {
pos[1]= ' ';
memcpy(pos + 1, offset+1, strlen(offset+1));
pos[strlen(offset+1)] = '\0';
memcpy(pos + 1, offset+1, strlen(offset)+1);
pos[strlen(offset)+1] = '\0';
} else {
pos[1] = '\0';
}