diff --git a/src/sbbs3/websrvr.c b/src/sbbs3/websrvr.c index f8092879a0cc5116239d445cc4c5f5983078e6c4..0f4bbe12cc4c8a5e6498ce82156453125e33a4cc 100644 --- a/src/sbbs3/websrvr.c +++ b/src/sbbs3/websrvr.c @@ -736,6 +736,7 @@ static void sock_sendfile(SOCKET socket,char *path) if((file=open(path,O_RDONLY|O_BINARY))==-1) lprintf("%04d !ERROR %d opening %s",socket,errno,path); else { + lseek(file,0,SEEK_SET); if(sendfilesocket(socket, file, 0, 0) < 1) lprintf("%04d !ERROR %d sending %s" , socket, errno, path);