+2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
+
2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-fstest.c: Remove variable length arrays.
{
int len1 = strlen(path);
int len2 = strlen(name);
+ int ret;
- char pathname[len1 + 1 + len2 + 1 + 13];
+ char *pathname = xmalloc (len1 + 1 + len2 + 1 + 13);
strcpy (pathname, path);
/* Avoid UNC-path "//name" on Cygwin. */
strcat (pathname, name);
- return grub_util_is_directory (pathname);
+ ret = grub_util_is_directory (pathname);
+ free (pathname);
+ return ret;
}
struct grub_hostfs_data