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