summaryrefslogtreecommitdiff
blob: 58eac42ce025588da08bf1edd5953c463f767794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -ur mathgl-1.8.1.orig/mgl/mgl_addon.cpp mathgl-1.8.1/mgl/mgl_addon.cpp
--- mathgl-1.8.1.orig/mgl/mgl_addon.cpp	2009-03-04 15:22:03.000000000 +0200
+++ mathgl-1.8.1/mgl/mgl_addon.cpp	2009-08-09 16:33:40.000000000 +0300
@@ -28,7 +28,7 @@
 //---------------------------------------------------------------------------
 int mgl_strpos(const char *str,char *fnd)
 {
-	char *p=strstr(str,fnd);
+	const char *p=strstr(str,fnd);
 	int res;
 	if(p)	res = p-str;
 	else	res = -1;
@@ -37,7 +37,7 @@
 //---------------------------------------------------------------------------
 int mgl_strpos(const char *str,char ch)
 {
-	char *p=strchr(str,ch);
+	const char *p=strchr(str,ch);
 	int res;
 	if(p)	res = p-str;
 	else	res = -1;