Update of /cvsroot/gtkpod/libgpod/src
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv32411/src

Modified Files:
        itdb_device.c 
Log Message:
        * src/itdb_device.c (itdb_device_get_ipod_info): compare more than
          4 characters of iPod model if the stored model number is more
          than 4 characters long.



Index: itdb_device.c
===================================================================
RCS file: /cvsroot/gtkpod/libgpod/src/itdb_device.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- itdb_device.c       7 Jun 2006 15:41:50 -0000       1.8
+++ itdb_device.c       10 Jun 2006 10:12:24 -0000      1.9
@@ -1,4 +1,4 @@
-/* Time-stamp: <2006-06-07 23:49:33 jcs>
+/* Time-stamp: <2006-06-10 15:14:18 jcs>
 |
 |  Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net>
 |  Part of the gtkpod project.
@@ -502,7 +502,8 @@
        
     for(i=2; ipod_info_table[i].model_number != NULL; i++)
     {
-       if(g_strncasecmp(p, ipod_info_table[i].model_number, 4) == 0)
+       if(g_strncasecmp(p, ipod_info_table[i].model_number, 
+                        strlen (ipod_info_table[i].model_number)) == 0)
        {
            g_free(model_num);
            return &ipod_info_table[i];



_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to