fixed load()

This commit is contained in:
Your Name 2024-07-05 08:34:28 +00:00
parent 4e856a1324
commit 9a7fa213b0

View File

@ -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)