Andre Przywara
2010-Sep-10 14:15 UTC
[Xen-devel] [PATCH 1/2] xl: fix adding configuration parameters over command line
Hi, since we read the configuration text file as is from the disk, there is no trailing \0 at the end terminating the C string. Therefore we must not use strcat to this buffer. Also we need to allocate space for the trailing zero byte. This is needed to make the command line appending actually work, otherwise I get a parser error due to memory trash. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Regards, Andre. -- Andre Przywara AMD-Operating System Research Center (OSRC), Dresden, Germany Tel: +49 351 448-3567-12 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel