On 27.02.2012 07:58, Richard Laager wrote:
On Thu, 2012-02-23 at 07:34 +0100, Vladimir 'φ-coder/phcoder' Serbinenko
wrote:
zfs-poolname-spaces.patch
...
@@ -420,6 +419,9 @@
         if (sscanf (sep, "%s %s", entry.fstype, entry.device) != 2)
        continue;

+      unescape (entry.fstype);
+      unescape (entry.device);
+
You need to increase the size of storage for these fields.
On second look... why?
It turns out that the sizes were already increased. Just that PATH_MAX refers to unescaped length, original can be substantially larger.
  The unescape() function modifies the string in
place, and it changes multi-character escape sequences into single
unescaped characters. I don't understand how this would change the size
requirement.



--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to