[Gpredict-svn] SF.net SVN: gpredict:[611] trunk/src/sat-pref-rot.c
Real time satellite tracking and orbit prediction
Status: Beta
                
                Brought to you by:
                
                    csete
                    
                
            | 
     
      
      
      From: <cs...@us...> - 2010-02-20 22:34:03
      
     
   | 
Revision: 611
          http://gpredict.svn.sourceforge.net/gpredict/?rev=611&view=rev
Author:   csete
Date:     2010-02-20 22:33:57 +0000 (Sat, 20 Feb 2010)
Log Message:
-----------
Use g_str_has_suffix() instead of g_strrstr() (from patch 2955061).
Modified Paths:
--------------
    trunk/src/sat-pref-rot.c
Modified: trunk/src/sat-pref-rot.c
===================================================================
--- trunk/src/sat-pref-rot.c	2010-02-20 22:29:18 UTC (rev 610)
+++ trunk/src/sat-pref-rot.c	2010-02-20 22:33:57 UTC (rev 611)
@@ -220,7 +220,7 @@
         /* read each .rot file */
         while ((filename = g_dir_read_name (dir))) {
             
-            if (g_strrstr (filename, ".rot")) {
+            if (g_str_has_suffix (filename, ".rot")) {
                 
                 vbuff = g_strsplit (filename, ".rot", 0);
                 conf.name = g_strdup (vbuff[0]);
@@ -360,7 +360,7 @@
         /* read each .rot file */
         while ((filename = g_dir_read_name (dir))) {
 
-            if (g_strrstr (filename, ".rot")) {
+            if (g_str_has_suffix (filename, ".rot")) {
 
                 buff = g_strconcat (dirname, G_DIR_SEPARATOR_S, filename, NULL);
                 g_remove (buff);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
 |