NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/45384: Swapped arguments in record.c



>Number:         45384
>Category:       bin
>Synopsis:       Swapped arguments in record.c
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 21 12:35:00 +0000 2011
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Swapped arguments in lseek audio/record/record.c
>How-To-Repeat:

>Fix:
diff -u -r1.51 record.c
--- usr.bin/audio/record/record.c       28 Aug 2011 01:17:48 -0000      1.51
+++ usr.bin/audio/record/record.c       21 Sep 2011 08:41:47 -0000
@@ -755,7 +755,7 @@
        if (outfd == STDOUT_FILENO)
                return;
 
-       if (lseek(outfd, SEEK_SET, 0) < 0)
+       if (lseek(outfd, (off_t)0, SEEK_SET) < 0)
                err(1, "could not seek to start of file for header rewrite");
        write_header();
 }



Home | Main Index | Thread Index | Old Index