Ticket #27819: cdrdao-device-default-bufsize.patch

File cdrdao-device-default-bufsize.patch, 577 bytes (added by jagerman@…, 13 years ago)
  • dao/main.cc

     
    12421242const char* getDefaultDevice(DaoDeviceType req)
    12431243{
    12441244    int i, len;
    1245     static char buf[128];
     1245    static char buf[256];
    12461246
    12471247    // This function should not be called if the command issues
    12481248    // doesn't actually require a device.
     
    12701270            if (req == NEED_CDRW_W && !rww)
    12711271              continue;
    12721272
    1273             strncpy(buf, sdata[i].dev.c_str(), 128);
     1273            strncpy(buf, sdata[i].dev.c_str(), 256);
    12741274            delete[] sdata;
    12751275            return buf;
    12761276        }