Fix off-by-one error in Augeas wrapper code.

This commit is contained in:
Richard Jones
2009-04-10 12:47:04 +01:00
parent 95de8eea73
commit 1c8f9c274a

View 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");