소스 검색

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 년 전
부모
커밋
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);