--- epson.c Mon Apr 22 20:03:44 2002 +++ ../../epson-old.c Fri Sep 27 11:49:26 2002 @@ -2060,9 +2060,7 @@ * Extended status flag request (ESC f). * this also requests the scanner device name from the the scanner */ -#if 0 if( SANE_TRUE == dev->extension) -#endif /* * because we are also using the device name from this command, * we have to run this block even if the scanner does not report @@ -2190,6 +2188,21 @@ dev->sane.model = ( char *) memcpy( str, device_name, len); } } + else + { +#define DEVICE_NAME_LEN (16) +#define DEVICE_NAME "GT 6000" + + int len; + + len = strlen(DEVICE_NAME); + str = malloc( len + 1); + str[len] = '\0'; + + /* finally copy the device name to the structure */ + dev->sane.model = ( char *) memcpy( str, DEVICE_NAME, len); + } + /* * Set values for quick format "max" entry.