kopia lustrzana https://gitlab.com/sane-project/backends
removed again that old fgets() call - sorry...
rodzic
7dac4b26f2
commit
73bfb2d153
|
@ -790,11 +790,7 @@ SANE_Status sane_init( SANE_Int *version_code, SANE_Auth_Callback authorize )
|
||||||
return attach("/dev/pt_drv", 0);
|
return attach("/dev/pt_drv", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if V_REV >= 3
|
|
||||||
while (sanei_config_read( dev_name, sizeof(dev_name), fp)) {
|
while (sanei_config_read( dev_name, sizeof(dev_name), fp)) {
|
||||||
#else
|
|
||||||
while (fgets(dev_name, sizeof(dev_name), fp)) {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
DBG( _DBG_SANE_INIT, "sane_init, >%s<\n", dev_name);
|
DBG( _DBG_SANE_INIT, "sane_init, >%s<\n", dev_name);
|
||||||
if( dev_name[0] == '#') /* ignore line comments */
|
if( dev_name[0] == '#') /* ignore line comments */
|
||||||
|
|
Ładowanie…
Reference in New Issue