|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Fix signedness issue in private implement
# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1168266328 0
# Node ID 037f49cd8016405d290b37a2352fef4d6663329e
# Parent 7878db2276c94bef4da8577568632a10bd527291
Fix signedness issue in private implementation of memmem().
Signed-off-by: Alex Williamson <alex.williamson@xxxxxx>
---
xen/tools/symbols.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 7878db2276c9 -r 037f49cd8016 xen/tools/symbols.c
--- a/xen/tools/symbols.c Mon Jan 08 14:24:42 2007 +0000
+++ b/xen/tools/symbols.c Mon Jan 08 14:25:28 2007 +0000
@@ -353,7 +353,7 @@ static void *memmem_pvt(void *h, size_t
static void *memmem_pvt(void *h, size_t hlen, void *n, size_t nlen)
{
char *p;
- for (p = h; (p - (char *)h) <= (hlen - nlen); p++)
+ for (p = h; (p - (char *)h) <= (long)(hlen - nlen); p++)
if (!memcmp(p, n, nlen)) return p;
return NULL;
}
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Fix signedness issue in private implementation of memmem().,
Xen patchbot-unstable <=
|
|
|
|
|