kopia lustrzana https://gitlab.com/sane-project/backends
Use correct size for fgets. Patch from Antoine Jacoutot <ajacoutot@lphp.org>.
rodzic
2e2704fa97
commit
38087da06a
|
@ -1,3 +1,9 @@
|
|||
2005-10-06 Henning Meier-Geinitz <henning@meier-geinitz.de>
|
||||
|
||||
* doc/descriptions/unsupported.desc: Added HP ScanJet 3800c.
|
||||
* frontend/scanimage.c: Use correct size for fgets. Patch from
|
||||
Antoine Jacoutot <ajacoutot@lphp.org>.
|
||||
|
||||
2005-10-05 Mattias Ellert <mattias.ellert@tsl.uu.se>
|
||||
|
||||
* backend/microtek2.c: Off-by-one error
|
||||
|
|
|
@ -178,7 +178,7 @@ auth_callback (SANE_String_Const resource,
|
|||
else
|
||||
len = strlen (resource);
|
||||
|
||||
while (fgets (tmp, 512, pass_file))
|
||||
while (fgets (tmp, sizeof(tmp), pass_file))
|
||||
{
|
||||
|
||||
if ((strlen (tmp) > 0) && (tmp[strlen (tmp) - 1] == '\n'))
|
||||
|
|
Ładowanie…
Reference in New Issue