Sfoglia il codice sorgente

defect 896
Ruppert reported there was a missing typecast


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@822 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 20 anni fa
parent
commit
0dc7b0267a
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      exec/totemconfig.c

+ 1 - 1
exec/totemconfig.c

@@ -77,7 +77,7 @@ strstr_rs (const char *haystack, const char *needle)
 {
 {
 	char *end_address;
 	char *end_address;
 	char *new_needle;
 	char *new_needle;
-	char *token = needle + strlen (needle) - 1; /* last char is always the token */
+	char *token = (char *)(needle + strlen (needle) - 1); /* last char is always the token */
 
 
 	
 	
 	new_needle = (char *)strdup (needle);
 	new_needle = (char *)strdup (needle);