summaryrefslogtreecommitdiff
blob: 7bdd8f9a8d1f1a32bd7f85ee58c9c23ef060a007 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur localshell-1.3.1.orig/src/config.cxx localshell-1.3.1/src/config.cxx
--- localshell-1.3.1.orig/src/config.cxx	2009-01-09 03:40:11.000000000 +0200
+++ localshell-1.3.1/src/config.cxx	2009-08-09 18:15:17.000000000 +0300
@@ -121,7 +121,7 @@
 	// PRIORITY,SHELL,ALLOWED
 	long priority = atol(argvalue);
 
-	char* shell = strstr(argvalue,",");
+	char* shell = const_cast<char*> (strstr(argvalue,","));
 	if(NULL == shell || '\0' == shell[1] ) { 
 		fprintf(stderr,"%s: badly formatted entry (shell):%s\n",PACKAGE,argvalue); 
 		return EINVAL;