detect: Fix OSS device detection with long names

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=89921
This commit is contained in:
Andrey Zholos 2015-04-13 08:30:46 +05:30 committed by Arun Raghavan
parent 6db74fc3c7
commit 492fa1ff32

View file

@ -131,7 +131,7 @@ static int detect_oss(pa_core *c, int just_one) {
} }
while (!feof(f)) { while (!feof(f)) {
char line[64], args[64]; char line[256], args[64];
unsigned device; unsigned device;
if (!fgets(line, sizeof(line), f)) if (!fgets(line, sizeof(line), f))