projects
/
bumblebee.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d2bf00
)
fix pcie id string overrun
author
Debian NVIDIA Maintainers
<pkg-nvidia-devel@lists.alioth.debian.org>
Sat, 2 Jan 2021 13:54:24 +0000
(13:54 +0000)
committer
Luca Boccassi
<bluca@debian.org>
Sat, 2 Jan 2021 13:54:24 +0000
(13:54 +0000)
Origin: commit:
44cd9bd71fb4ded05be51f0d653b59a043b31088
Applied-Upstream: commit:
44cd9bd71fb4ded05be51f0d653b59a043b31088
Bug-Debian: https://bugs.debian.org/979006
Gbp-Pq: Name pcie_id_overrun.patch
src/bbsecondary.c
patch
|
blob
|
history
diff --git
a/src/bbsecondary.c
b/src/bbsecondary.c
index 14d5104af0a67bd0eb3f9da74be80efc40a435f9..11520b8157bd81dd44fe38e11ba8dae25b428810 100644
(file)
--- a/
src/bbsecondary.c
+++ b/
src/bbsecondary.c
@@
-139,9
+139,10
@@
bool start_secondary(bool need_secondary) {
return true;
//no problems, start X if not started yet
if (!bb_is_running(bb_status.x_pid)) {
- char pci_id[1
2
];
+ char pci_id[1
3
];
static char *x_conf_file;
- snprintf(pci_id, 12, "PCI:%02d:%02d:%o", pci_bus_id_discrete->bus,
+ // 0-255 bus, 0-31 slot, 0-7 func
+ snprintf(pci_id, 13, "PCI:%03d:%02d:%o", pci_bus_id_discrete->bus,
pci_bus_id_discrete->slot, pci_bus_id_discrete->func);
if (!x_conf_file) {
x_conf_file = xorg_path_w_driver(bb_config.x_conf_file, bb_config.driver);