Blame numactl-2.0.3-nodes_allowed_list_obo.patch
|
Neil Horman |
05de20 |
diff -up numactl-2.0.3/libnuma.c.orig numactl-2.0.3/libnuma.c
|
|
Neil Horman |
05de20 |
--- numactl-2.0.3/libnuma.c.orig 2009-08-10 07:02:12.000000000 -0400
|
|
Neil Horman |
05de20 |
+++ numactl-2.0.3/libnuma.c 2009-08-10 07:02:39.000000000 -0400
|
|
Neil Horman |
05de20 |
@@ -464,7 +464,7 @@ set_thread_constraints(void)
|
|
Neil Horman |
05de20 |
nodes_allowed_list = malloc(strlen(buffer)-18);
|
|
Neil Horman |
05de20 |
strncpy(nodes_allowed_list, buffer + 19,
|
|
Neil Horman |
05de20 |
strlen(buffer) - 19);
|
|
Neil Horman |
05de20 |
- nodes_allowed_list[strlen(nodes_allowed_list)-1] = '\0';
|
|
Neil Horman |
05de20 |
+ nodes_allowed_list[strlen(buffer)-19] = '\0';
|
|
Neil Horman |
05de20 |
}
|
|
Neil Horman |
05de20 |
}
|
|
Neil Horman |
05de20 |
fclose(f);
|