use strrchr() over rindex() for portability
authorVincent Torri <vincent.torri@gmail.com>
Mon, 11 Jul 2011 04:15:42 +0000 (04:15 +0000)
committerVincent Torri <vincent.torri@gmail.com>
Mon, 11 Jul 2011 04:15:42 +0000 (04:15 +0000)
SVN revision: 61225

src/lib/elm_win.c

index ecd6695..67aa39b 100644 (file)
@@ -206,7 +206,7 @@ _shot_file_get(Elm_Win *win)
              if (!win->shot.repeat_count) return tmp;
              else
                {
-                  char *dotptr = rindex(tmp, '.');
+                  char *dotptr = strrchr(tmp, '.');
                   if (dotptr)
                     {
                        repname = malloc(sizeof(char)*(strlen(tmp) + 16));