From: Richard Jones Date: Fri, 10 Apr 2009 11:47:04 +0000 (+0100) Subject: Fix off-by-one error in Augeas wrapper code. X-Git-Tag: 0.8~8 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=1c8f9c274adb342b263d083f0ac0c24e4b600974;p=libguestfs.git Fix off-by-one error in Augeas wrapper code. --- diff --git a/daemon/augeas.c b/daemon/augeas.c index 04c4a7a..76b85d9 100644 --- a/daemon/augeas.c +++ b/daemon/augeas.c @@ -57,7 +57,7 @@ do_aug_init (const char *root, int flags) aug = NULL; } - len = strlen (root) + 8; + len = strlen (root) + 9; buf = malloc (len); if (!buf) { reply_with_perror ("malloc");