Revision: 1988
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1988&view=rev
Author:   phantom_sf
Date:     2008-05-29 04:49:05 -0700 (Thu, 29 May 2008)

Log Message:
-----------
2008-05-29 P.G. Richardson <phantom_sf at users.sourceforge.net>

  * src/fetchcover.c

    Fix for incorrect creation of jpg filenames

Modified Paths:
--------------
    gtkpod/trunk/ChangeLog
    gtkpod/trunk/src/fetchcover.c

Modified: gtkpod/trunk/ChangeLog
===================================================================
--- gtkpod/trunk/ChangeLog      2008-05-29 09:30:45 UTC (rev 1987)
+++ gtkpod/trunk/ChangeLog      2008-05-29 11:49:05 UTC (rev 1988)
@@ -1,5 +1,11 @@
 2008-05-29 P.G. Richardson <phantom_sf at users.sourceforge.net>
 
+  * src/fetchcover.c
+
+    Fix for incorrect creation of jpg filenames
+    
+2008-05-29 P.G. Richardson <phantom_sf at users.sourceforge.net>
+
   * src/display_photo.c
 
     Fix for pixbufs not being unreference in display_photo.c

Modified: gtkpod/trunk/src/fetchcover.c
===================================================================
--- gtkpod/trunk/src/fetchcover.c       2008-05-29 09:30:45 UTC (rev 1987)
+++ gtkpod/trunk/src/fetchcover.c       2008-05-29 11:49:05 UTC (rev 1988)
@@ -395,11 +395,12 @@
                                for (i = 1; g_file_test (filepath, 
G_FILE_TEST_EXISTS); ++i)
                                {               
                                        g_free (newfilename);
-                                       gchar * intext = (gchar *) g_malloc 
(sizeof(gint) + (sizeof(gchar) * 4));
-                                       g_sprintf (intext, "%d.jpg", i);
+                                       gchar *intext= NULL;
+                                       index_str = g_strdup_printf ("%d.jpg", 
i);
                                        newfilename = g_strconcat (basename, 
intext, NULL);
                                        
                                        g_free (filepath);
+                                       g_free (inext);
                                        
                                        filepath = 
g_build_filename(fetch_cover->dir, newfilename, NULL);
                                }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to