Blame numactl-parse_bitmap_nodebind.patch
|
Neil Horman |
c7cf63 |
--- numactl-0.9.8/numactl-0.9.8/libnuma.c.orig 2006-09-21 12:26:52.000000000 -0400
|
|
Neil Horman |
c7cf63 |
+++ numactl-0.9.8/numactl-0.9.8/libnuma.c 2006-09-21 12:27:14.000000000 -0400
|
|
Neil Horman |
c7cf63 |
@@ -420,7 +420,7 @@ int numa_parse_bitmap(char *line, unsign
|
|
Neil Horman |
c7cf63 |
while (p > line && *p != ',')
|
|
Neil Horman |
c7cf63 |
--p;
|
|
Neil Horman |
c7cf63 |
/* Eat two 32bit fields at a time to get longs */
|
|
Neil Horman |
c7cf63 |
- if (sizeof(unsigned long) == 8) {
|
|
Neil Horman |
c7cf63 |
+ if (p > line && sizeof(unsigned long) == 8) {
|
|
Neil Horman |
c7cf63 |
oldp--;
|
|
Neil Horman |
c7cf63 |
memmove(p, p+1, oldp-p+1);
|
|
Neil Horman |
c7cf63 |
while (p > line && *p != ',')
|