|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 04/10] xeniface: fix __MultiSzLen never incrementing string count
if (*Count) checked the value which is always 0, so Count
was never incremented and callers always received 0 strings.
Change to if (Count) to guard the pointer as intended.
Signed-off-by: david ambu <david.preetham@xxxxxxxxxx>
Assisted by Claude Sonnet 4.6
---
src/xeniface/ioctl_store.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xeniface/ioctl_store.c b/src/xeniface/ioctl_store.c
index dbe197b..5e422b5 100644
--- a/src/xeniface/ioctl_store.c
+++ b/src/xeniface/ioctl_store.c
@@ -87,7 +87,7 @@ __MultiSzLen(
do {
for ( ; *Str; ++Str, ++Length) ;
++Str; ++Length;
- if (*Count) ++(*Count);
+ if (Count) ++(*Count);
} while (*Str);
return Length;
}
--
2.51.0.windows.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |