Просмотр исходного кода

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 лет назад
Родитель
Сommit
0dc7b0267a
1 измененных файлов с 1 добавлено и 1 удалено
  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 *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);