diff options
author | Esteban Carnevale <alfplayer@mailoo.org> | 2014-04-24 18:39:54 -0300 |
---|---|---|
committer | Esteban Carnevale <alfplayer@mailoo.org> | 2014-04-24 18:39:54 -0300 |
commit | 10297249275ab298544c9e34b49e8b61a6ad448c (patch) | |
tree | bce664d8e1470bc268a9c86932af2a2feaa2b7e6 /pcr/multipath-tools/buffer-overflows.patch | |
parent | d22b7c00d202a04dfb09ba662bcabd501a836c7f (diff) |
multipath-tools-0.5.0-1: add new package to [pcr]
Diffstat (limited to 'pcr/multipath-tools/buffer-overflows.patch')
-rw-r--r-- | pcr/multipath-tools/buffer-overflows.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pcr/multipath-tools/buffer-overflows.patch b/pcr/multipath-tools/buffer-overflows.patch new file mode 100644 index 000000000..7d84ea91c --- /dev/null +++ b/pcr/multipath-tools/buffer-overflows.patch @@ -0,0 +1,13 @@ +diff --git a/libmultipath/prioritizers/hds.c b/libmultipath/prioritizers/hds.c +index f748707..1cec8a7 100644 +--- a/libmultipath/prioritizers/hds.c ++++ b/libmultipath/prioritizers/hds.c +@@ -125,7 +125,7 @@ int hds_modular_prio (const char *dev, int fd) + return -1; + } + +- snprintf (vendor, 9, "%.8s", inqBuffp + 8); ++ snprintf (vendor, 8, "%.8s", inqBuffp + 8); + snprintf (product, 17, "%.16s", inqBuffp + 16); + snprintf (serial, 5, "%.4s", inqBuffp + 40); + snprintf (ldev, 5, "%.4s", inqBuffp + 44);
\ No newline at end of file |