[Xfce4-commits] r24031 - in xarchiver/branches/xarchiver-psybsd: . src

Stephan Arts stephan at xfce.org
Fri Dec 1 23:54:29 CET 2006


Author: stephan
Date: 2006-12-01 22:54:28 +0000 (Fri, 01 Dec 2006)
New Revision: 24031

Modified:
   xarchiver/branches/xarchiver-psybsd/TODO
   xarchiver/branches/xarchiver-psybsd/src/archive_store.c
Log:
Appended a 'NULL' item to sort_list array.



Modified: xarchiver/branches/xarchiver-psybsd/TODO
===================================================================
--- xarchiver/branches/xarchiver-psybsd/TODO	2006-12-01 21:03:56 UTC (rev 24030)
+++ xarchiver/branches/xarchiver-psybsd/TODO	2006-12-01 22:54:28 UTC (rev 24031)
@@ -63,7 +63,7 @@
 
 	archive-store out-of-sync is buffer-flush... breaks on index 499800: 499800.0 / 300.0 (buffer-size) == 1666.0 remaining 199 items are not flushed
 	  - entire buffer is emptied into array 
-		- seems fixed, is a signed/unsigned conversion error
+		- seems fixed, is a signed/unsigned conversion error. (is only a part of the problem)
 
 DONE:
 

Modified: xarchiver/branches/xarchiver-psybsd/src/archive_store.c
===================================================================
--- xarchiver/branches/xarchiver-psybsd/src/archive_store.c	2006-12-01 21:03:56 UTC (rev 24030)
+++ xarchiver/branches/xarchiver-psybsd/src/archive_store.c	2006-12-01 22:54:28 UTC (rev 24031)
@@ -868,7 +868,7 @@
 	if(psize <= 1)
 		return;
 
-	store->sort_list = g_new(LSQArchiveIter*, psize);
+	store->sort_list = g_new(LSQArchiveIter*, psize+1);
 
 	for(i = 0; i < psize; ++i)
 	{
@@ -876,6 +876,7 @@
 	}
 	sq_archive_quicksort(store, 0, psize-1);
 	sq_archive_insertionsort(store, 0, psize-1);
+	store->sort_list[psize] = NULL;
 }
 
 inline void



More information about the Xfce4-commits mailing list