Rewinded file to beginning
Signed-off-by: Tyrolyean <tyrolyean@tyrolyean.net>
This commit is contained in:
parent
ece1e21535
commit
665a03c45a
1 changed files with 1 additions and 0 deletions
|
@ -29,6 +29,7 @@ char* attach_files(FILE* buffer){
|
|||
return NULL;
|
||||
}
|
||||
memset(new_body,0, len + 1);
|
||||
fseek(buffer, 0, SEEK_SET);
|
||||
if(fread(new_body, 1, len, buffer) <= 0){
|
||||
perror("Failed to read file buffer");
|
||||
free(new_body);
|
||||
|
|
Loading…
Reference in a new issue