|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] libxl: off by one fix for new network-attach args pa
# HG changeset patch
# User Marek Marczykowski <marmarek@xxxxxxxxxxxx>
# Date 1307904815 -7200
# Node ID 764214d25cd9825925aeb846a6bdec56c9a5259a
# Parent 262a414e7e37541ff3c1346b316487606e9e736f
libxl: off by one fix for new network-attach args parsing
sizeof(const string) returns string length WITH \0 terminator.
Signed-off-by: Marek Marczykowski <marmarek@xxxxxxxxxxxx>
diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c
--- a/tools/libxl/xl_cmdimpl.c
+++ b/tools/libxl/xl_cmdimpl.c
@@ -1238,7 +1238,7 @@ static int match_option_size(const char
return !rc;
}
#define match_option(_prefix, _arg, _oparg) \
- match_option_size((_prefix "="), sizeof((_prefix)) + 1, (_arg), &(_oparg))
+ match_option_size((_prefix "="), sizeof((_prefix)), (_arg), &(_oparg))
static void replace_string(char **str, const char *val)
{
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH] libxl: off by one fix for new network-attach args parsing,
Marek Marczykowski <=
|
|
|
|
|