Disable 'MAX_LEN' limitation of option (engine command-line) length.
authorshort <>
Fri, 22 Aug 2003 00:00:33 +0000 (00:00 +0000)
committershort <>
Fri, 22 Aug 2003 00:00:33 +0000 (00:00 +0000)
lufsd/options.c

index 44f3663..2f9ae59 100644 (file)
@@ -266,7 +266,9 @@ lu_opt_parse(struct list_head *conf, char *domain, char *opts){
        if(sep){
            TRACE("option with parameter");
 
-           if((strlen(sep + 1) >= MAX_LEN) || !(prop->value = malloc(strlen(sep + 1) + 1))){
+           if(
+                   /* (strlen(sep + 1) >= MAX_LEN) ||  - FIXME: Why the limit was here? */
+                   !(prop->value = malloc(strlen(sep + 1) + 1))){
                WARN("out of mem!");
                free(prop->key);
                free(prop);