]> granicus.if.org Git - postgis/commitdiff
changed index/rindex to strchr/strrchr
authorSandro Santilli <strk@keybit.net>
Wed, 9 Jun 2004 09:08:53 +0000 (09:08 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 9 Jun 2004 09:08:53 +0000 (09:08 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@614 b70326c6-7e19-0410-871a-916f4a2858ee

postgis_inout.c

index 518dad0406e02c7d64b593be843b2c81b28ac273..3543c7b99ba1876950df8b25d74d16cf37a6df99 100644 (file)
@@ -11,6 +11,9 @@
  *
  **********************************************************************
  * $Log$
+ * Revision 1.44  2004/06/09 09:08:53  strk
+ * changed index/rindex to strchr/strrchr
+ *
  * Revision 1.43  2004/06/08 15:18:12  strk
  * Deleted prototype for isspace() in postgis.h
  * and included <ctype.h> in postgis_inout.c,
@@ -1661,8 +1664,8 @@ Datum geometry_in(PG_FUNCTION_ARGS)
                                char *last_paren;
                                char *current_paren;
 
-                               first_paren= index (str,'(');
-                               last_paren = rindex(str,')');
+                               first_paren= strchr (str,'(');
+                               last_paren = strrchr(str,')');
 
                                if  ( (first_paren == NULL) || (last_paren == NULL) || (first_paren >last_paren) )
                                {