소스 검색

Fix critical bug of konfd from revision 138.

git-svn-id: https://klish.googlecode.com/svn/trunk@144 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 년 전
부모
커밋
5e06ff8991
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      konf/tree/tree.c

+ 1 - 1
konf/tree/tree.c

@@ -24,7 +24,7 @@ int konf_tree_bt_compare(const void *clientnode, const void *clientkey)
 	const konf_tree_t *this = clientnode;
 	unsigned short *pri = (unsigned short *)clientkey;
 	unsigned short *seq = (unsigned short *)clientkey + 1;
-	char *line = ((char *)clientkey + sizeof(unsigned short));
+	char *line = ((char *)clientkey + (2 * sizeof(unsigned short)));
 
 	/* Priority check */
 	if (this->priority != *pri)