[haiku-commits] r34054 - haiku/trunk/src/bin/package

  • From: ingo_weinhold@xxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Sun, 15 Nov 2009 09:40:35 +0100 (CET)

Author: bonefish
Date: 2009-11-15 09:40:35 +0100 (Sun, 15 Nov 2009)
New Revision: 34054
Changeset: http://dev.haiku-os.org/changeset/34054/haiku

Modified:
   haiku/trunk/src/bin/package/command_extract.cpp
Log:
Incorrectly used errno instead of error.


Modified: haiku/trunk/src/bin/package/command_extract.cpp
===================================================================
--- haiku/trunk/src/bin/package/command_extract.cpp     2009-11-15 08:39:45 UTC 
(rev 34053)
+++ haiku/trunk/src/bin/package/command_extract.cpp     2009-11-15 08:40:35 UTC 
(rev 34054)
@@ -259,7 +259,7 @@
                        error = reader->ReadData(offset, fDataBuffer, toCopy);
                        if (error != B_OK) {
                                fprintf(stderr, "Error: Failed to read data: 
%s\n",
-                                       strerror(errno));
+                                       strerror(error));
                                return error;
                        }
 


Other related posts:

  • » [haiku-commits] r34054 - haiku/trunk/src/bin/package - ingo_weinhold