]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Issue 23: A minor correction to the new dosmaperr()
authorTim Kientzle <kientzle@gmail.com>
Fri, 15 May 2009 04:54:38 +0000 (00:54 -0400)
committerTim Kientzle <kientzle@gmail.com>
Fri, 15 May 2009 04:54:38 +0000 (00:54 -0400)
function.  libarchive library now builds on MinGW;
still work to do on the test harness...

SVN-Revision: 1085

libarchive/archive_windows.c

index 7bc162dbd0411b7bd451efef11c6e2b770f367da..90d85415ea6e80a234874d9561785d47ad625ed1 100644 (file)
@@ -1186,7 +1186,7 @@ la_dosmaperr(unsigned long e)
                return;
        }
 
-       for (i = 0; i < lengthof(doserrors); i++)
+       for (i = 0; i < sizeof(doserrors); i++)
        {
                if (doserrors[i].winerr == e)
                {