Fix off-by-one error in Augeas wrapper code.
authorRichard Jones <rjones@redhat.com>
Fri, 10 Apr 2009 11:47:04 +0000 (12:47 +0100)
committerRichard Jones <rjones@redhat.com>
Fri, 10 Apr 2009 11:47:04 +0000 (12:47 +0100)
daemon/augeas.c

index 04c4a7a..76b85d9 100644 (file)
@@ -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");