Use correct size for fgets. Patch from Antoine Jacoutot <ajacoutot@lphp.org>.

merge-requests/1/head
Henning Geinitz 2005-10-06 19:11:09 +00:00
rodzic 2e2704fa97
commit 38087da06a
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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'))