genconf: take quote in account in confnode_set_user_strvalue()
authorOlivier Matz <zer0@droids-corp.org>
Fri, 24 Dec 2010 12:14:10 +0000 (13:14 +0100)
committerOlivier Matz <zer0@droids-corp.org>
Sun, 2 Jan 2011 20:53:15 +0000 (21:53 +0100)
Signed-off-by: Olivier Matz <zer0@droids-corp.org>
src/genconf/confnode.c

index 22aa068..cbd0961 100644 (file)
@@ -256,7 +256,7 @@ int confnode_set_user_strvalue(struct confnode *n, const char *strvalue)
                buf[end] = '\0';
 
        if (n->ops->set_user_strvalue)
-               return n->ops->set_user_strvalue(n, buf);
+               return n->ops->set_user_strvalue(n, buf+start);
 
        return -1;
 }