浏览代码

yup, i need to rest... (also, copy-paste is eeeevil)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9649 54d463be-8e91-2dee-dedb-b68131a5f0ec
FlavioJS 18 年之前
父节点
当前提交
78ec0c3b38
共有 2 个文件被更改,包括 4 次插入4 次删除
  1. 3 3
      src/common/malloc.h
  2. 1 1
      src/common/socket.c

+ 3 - 3
src/common/malloc.h

@@ -145,11 +145,11 @@
 
 ////////////// Others //////////////////////////
 // should be merged with any of above later
-#define CREATE(result, type, number) (result) = (type *) aCalloc ((number), sizeof(type));
+#define CREATE(result, type, number) (result) = (type *) aCalloc ((number), sizeof(type))
 
-#define CREATE_A(result, type, number) (result) = (type *) aCallocA ((number), sizeof(type));
+#define CREATE_A(result, type, number) (result) = (type *) aCallocA ((number), sizeof(type))
 
-#define RECREATE(result, type, number) (result) = (type *) aRealloc ((result), sizeof(type) * (number)); 	
+#define RECREATE(result, type, number) (result) = (type *) aRealloc ((result), sizeof(type) * (number))
 
 ////////////////////////////////////////////////
 

+ 1 - 1
src/common/socket.c

@@ -1026,7 +1026,7 @@ int socket_config_read(const char *cfgName) {
 			else if( strcmpi(w2,"mutual-failure") == 0 )
 				access_order=ACO_MUTUAL_FAILURE;
 		} else if( strcmpi(w1,"allow") == 0 ){
-			RECREATE(access_allow, AccessControl, access_denynum+1);
+			RECREATE(access_allow, AccessControl, access_allownum+1);
 			if( access_ipmask(w2,&access_allow[access_allownum]) )
 				++access_allownum;
 			else