fixed load()
This commit is contained in:
parent
4e856a1324
commit
9a7fa213b0
@ -208,6 +208,9 @@ void load(int cfd, pid_t par) {
|
|||||||
int ffd = -1;
|
int ffd = -1;
|
||||||
char *buf = NULL;
|
char *buf = NULL;
|
||||||
|
|
||||||
|
/* For INFO cmd */
|
||||||
|
name_len += 4;
|
||||||
|
|
||||||
/* Get filename */
|
/* Get filename */
|
||||||
char *filename = malloc(name_len + 1);
|
char *filename = malloc(name_len + 1);
|
||||||
if (filename == NULL)
|
if (filename == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user