small fix of strlen(offset+1) to strlen(offset)+1
This commit is contained in:
@@ -124,8 +124,8 @@ char* parse_cmd(const char *cmd, file *f){
|
|||||||
|
|
||||||
if (offset) {
|
if (offset) {
|
||||||
pos[1]= ' ';
|
pos[1]= ' ';
|
||||||
memcpy(pos + 1, offset+1, strlen(offset+1));
|
memcpy(pos + 1, offset+1, strlen(offset)+1);
|
||||||
pos[strlen(offset+1)] = '\0';
|
pos[strlen(offset)+1] = '\0';
|
||||||
} else {
|
} else {
|
||||||
pos[1] = '\0';
|
pos[1] = '\0';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user