Ticket #27819: cdrdao-device-default-bufsize.patch
File cdrdao-device-default-bufsize.patch, 577 bytes (added by jagerman@…, 13 years ago) |
---|
-
dao/main.cc
1242 1242 const char* getDefaultDevice(DaoDeviceType req) 1243 1243 { 1244 1244 int i, len; 1245 static char buf[ 128];1245 static char buf[256]; 1246 1246 1247 1247 // This function should not be called if the command issues 1248 1248 // doesn't actually require a device. … … 1270 1270 if (req == NEED_CDRW_W && !rww) 1271 1271 continue; 1272 1272 1273 strncpy(buf, sdata[i].dev.c_str(), 128);1273 strncpy(buf, sdata[i].dev.c_str(), 256); 1274 1274 delete[] sdata; 1275 1275 return buf; 1276 1276 }