[PATCH] Bug fix, the list has to be NULL terminated.

View: New views
1 Messages — Rating Filter:   Alert me  

[PATCH] Bug fix, the list has to be NULL terminated.

by Andrea-60 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

---
 src/syncdir.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/syncdir.c b/src/syncdir.c
index 1c55f05..58a10e5 100644
--- a/src/syncdir.c
+++ b/src/syncdir.c
@@ -496,7 +496,7 @@ static void cache_directory (const gchar *dir, GHashTable *dirs_hash)
     while ((filename = g_dir_read_name(dir_handle)))
     {
         /* Construct absolute path from dir and filename */
-        path = g_build_filename(dir, filename);
+        path = g_build_filename(dir, filename, NULL);
 
         /* If path is not directory then move on to next */
         if (! g_file_test (path, G_FILE_TEST_IS_DIR))
--
1.6.2.5


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gtkpod-devel mailing list
Gtkpod-devel@...
https://lists.sourceforge.net/lists/listinfo/gtkpod-devel