changeset 11013:49818f04efb9

100L fix the bug added by last commit
author albeu
date Sun, 05 Oct 2003 10:35:10 +0000
parents ff06dcb06d93
children b02ee343b0e1
files unrarlib.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/unrarlib.c	Sun Oct 05 01:06:30 2003 +0000
+++ b/unrarlib.c	Sun Oct 05 10:35:10 2003 +0000
@@ -711,7 +711,7 @@
 
   if((FILE_HEAD == BlockType) && (Size>0))
   {
-    NewLhd.NameSize=Min(NewLhd.NameSize,sizeof(ArcFileName)-1);
+    ArcFileName=realloc(ArcFileName,NewLhd.NameSize+1);
 #ifdef _USE_MEMORY_TO_MEMORY_DECOMPRESSION
     tread(MemRARFile, ArcFileName, NewLhd.NameSize);
 #else