NetBSD-Bugs archive

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

bin/45385: Swapped arguments in gencat.c



>Number:         45385
>Category:       bin
>Synopsis:       Swapped arguments in gencat.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 gencat/gencat.c
>How-To-Repeat:

>Fix:
diff -u -r1.31 gencat.c
--- usr.bin/gencat/gencat.c     4 Sep 2011 20:27:05 -0000       1.31
+++ usr.bin/gencat/gencat.c     21 Sep 2011 08:41:48 -0000
@@ -186,7 +186,7 @@
                        curfile = catfile;
                        updatecat = 1;
                        MCReadCat(ofd);
-                       if (lseek(ofd, SEEK_SET, 0) < 0) {
+                       if (lseek(ofd, (off_t)0, SEEK_SET) < 0) {
                                err(1, "Unable to seek on %s", catfile);
                                /* NOTREACHED */
                        }



Home | Main Index | Thread Index | Old Index