detect: Fix OSS device detection with long names
authorAndrey Zholos <aaz@q-fu.com>
Mon, 13 Apr 2015 03:00:46 +0000 (08:30 +0530)
committerArun Raghavan <git@arunraghavan.net>
Mon, 13 Apr 2015 03:02:16 +0000 (08:32 +0530)
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=89921

src/modules/module-detect.c

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