diff options
Diffstat (limited to 'net-analyzer/slurm/files/slurm-0.3.3-overflow.patch')
-rw-r--r-- | net-analyzer/slurm/files/slurm-0.3.3-overflow.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net-analyzer/slurm/files/slurm-0.3.3-overflow.patch b/net-analyzer/slurm/files/slurm-0.3.3-overflow.patch new file mode 100644 index 000000000000..f9adc1d9bf71 --- /dev/null +++ b/net-analyzer/slurm/files/slurm-0.3.3-overflow.patch @@ -0,0 +1,17 @@ +--- a/src/linux.c ++++ b/src/linux.c +@@ -68,11 +68,11 @@ + + /* do not parse the first two lines as they only contain static garbage */ + fseek(proc_net_dev, 0, SEEK_SET); +- fgets(buffer, BUFSIZ-1, proc_net_dev); +- fgets(buffer, BUFSIZ-1, proc_net_dev); ++ fgets(buffer, BUFSIZE-1, proc_net_dev); ++ fgets(buffer, BUFSIZE-1, proc_net_dev); + + interfacefound = 0; +- while (fgets(buffer, BUFSIZ-1, proc_net_dev) != NULL) ++ while (fgets(buffer, BUFSIZE-1, proc_net_dev) != NULL) + { + /* find the device name and substitute ':' with '\0' */ + ptr = buffer; |