[FFmpeg-cvslog] r11459 - trunk/tools/trasher.c
Michael Niedermayer
michaelni
Wed Jan 9 01:10:14 CET 2008
On Tue, Jan 08, 2008 at 03:51:16PM -0800, Mike Melanson wrote:
> Michael Niedermayer wrote:
> >> Also, this segfaults when called without arguments or when the file to
> >> open does not exist.
> >
> > debug it and fix it
> > no i dont really care, its not a tool for the user, and any devel can
> > read the half page of C to figure it out
>
> Here's a fix. Apply?
>
> --
> -Mike Melanson
>
>
>
> Index: tools/trasher.c
> ===================================================================
> --- tools/trasher.c (revision 11478)
> +++ tools/trasher.c (working copy)
> @@ -6,11 +6,24 @@
>
> int main(int argc, char** argv)
> {
> - FILE *f= fopen(argv[1], "rb+");
> - int count= atoi(argv[2]);
> - int maxburst= atoi(argv[3]);
> + FILE *f;
> + int count;
> + int maxburst;
> int length;
put them on the same line please
and rest ok
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Complexity theory is the science of finding the exact solution to an
approximation. Benchmarking OTOH is finding an approximation of the exact
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-cvslog/attachments/20080109/a1173e09/attachment.pgp>
More information about the ffmpeg-cvslog
mailing list