r911 - trunk/archivers

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sun May 27 10:34:28 EDT 2007


Author: icculus
Date: 2007-05-27 10:34:28 -0400 (Sun, 27 May 2007)
New Revision: 911

Modified:
   trunk/archivers/lzma.c
Log:
FIXME removal: Replaced a strncpy() with a memcpy().


Modified: trunk/archivers/lzma.c
===================================================================
--- trunk/archivers/lzma.c	2007-05-11 20:12:10 UTC (rev 910)
+++ trunk/archivers/lzma.c	2007-05-27 14:34:28 UTC (rev 911)
@@ -313,9 +313,8 @@
     } /* if */
 
     /* Copy wanted bytes over from cache to outBuffer */
-/* !!! FIXME: strncpy for non-string data? */
-	strncpy(outBuffer,
-            (void*) (entry->archive->folder[entry->folderIndex].cache +
+	memcpy(outBuffer,
+            (entry->archive->folder[entry->folderIndex].cache +
                      entry->offset + entry->position),
             (size_t) wantedSize);
     entry->position += wantedSize;




More information about the physfs-commits mailing list