Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_desktop


Modified Files:
        ecore_desktop.c 


Log Message:


trampling over p variable in a tmp sub-block - use diff var

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_desktop/ecore_desktop.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -3 -r1.22 -r1.23
--- ecore_desktop.c     3 Sep 2006 07:31:35 -0000       1.22
+++ ecore_desktop.c     3 Sep 2006 10:47:26 -0000       1.23
@@ -370,15 +370,17 @@
                                    tmp = strdup(ecore_file_get_file(exe));
                                   if (tmp)
                                     {
-                                       p = tmp;
-                                       while (*p != '\0')
+                                       char *p2;
+                                       
+                                       p2 = tmp;
+                                       while (*p2 != '\0')
                                           {
-                                             if (*p == ' ')
+                                             if (*p2 == ' ')
                                              {
-                                                *p = '\0';
+                                                *p2 = '\0';
                                                 break;
                                              }
-                                             p++;
+                                             p2++;
                                           }
                                        if (done)
                                           strcat(result->icon_class, ",");



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to