Ver Fonte

mtree: fixed len check for dbtable attribute

Daniel-Constantin Mierla há 15 anos atrás
pai
commit
5783e4dd98
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      modules/mtree/mtree.c

+ 1 - 1
modules/mtree/mtree.c

@@ -624,7 +624,7 @@ int mt_table_spec(char* val)
 		} else if(pit->name.len==4
 		} else if(pit->name.len==4
 				&& strncasecmp(pit->name.s, "type", 4)==0) {
 				&& strncasecmp(pit->name.s, "type", 4)==0) {
 			str2sint(&pit->body, &tmp.type);
 			str2sint(&pit->body, &tmp.type);
-		}  else if(pit->name.len==8
+		}  else if(pit->name.len==7
 				&& strncasecmp(pit->name.s, "dbtable", 7)==0) {
 				&& strncasecmp(pit->name.s, "dbtable", 7)==0) {
 			tmp.dbtable = pit->body;
 			tmp.dbtable = pit->body;
 		}
 		}