Date: Sun, 3 Jul 2005 18:50:15 GMT From: Ulrich Spoerlein <spoerlein@informatik.uni-wuerzburg.de> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/82917: [PATCH] update multimedia/lxdvdrip to 1.46 Message-ID: <200507031850.j63IoFAE086192@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/82917; it has been noted by GNATS. From: Ulrich Spoerlein <spoerlein@informatik.uni-wuerzburg.de> To: bug-followup@FreeBSD.org, josemi@freebsd.jazztel.es Cc: Subject: Re: ports/82917: [PATCH] update multimedia/lxdvdrip to 1.46 Date: Sun, 3 Jul 2005 20:45:13 +0200 --ReaqsoxgOBHFXBhH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Heh, I had the exact same update sitting in my tree. Just waiting for 1.46 to go final (looks like I missed it). The update can be committed, but lxdvdrip.c needs to be patched nevertheless. So to the committer: Replace patch-lxdvdrip.c with the attached one. Thanks. Ulrich Spoerlein --ReaqsoxgOBHFXBhH Content-Type: text/x-csrc; charset=us-ascii Content-Disposition: attachment; filename="patch-lxdvdrip.c" --- lxdvdrip.c.orig Thu May 5 16:25:21 2005 +++ lxdvdrip.c Thu May 5 16:32:23 2005 @@ -742,7 +742,7 @@ return -1; } - if (fseek (filehandle, 32808, SEEK_SET)) + if (fseek (filehandle, 32768, SEEK_SET)) { fclose (filehandle); switch (lSprache) @@ -762,7 +762,10 @@ return -1; } - if (32 != (i = fread (title, 1, 32, filehandle))) +#define DVD_SEC_SIZ 2048 + char tempBuf[DVD_SEC_SIZ]; + + if (DVD_SEC_SIZ != fread (tempBuf, 1, DVD_SEC_SIZ, filehandle)) { fclose (filehandle); switch (lSprache) @@ -780,7 +783,8 @@ strcpy (title, "unknown"); return -1; } - + snprintf( title, 32, "%s", tempBuf + 40 ); + i=32; fclose (filehandle); title[32] = '\0'; --ReaqsoxgOBHFXBhH--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507031850.j63IoFAE086192>