openbsd-ports/graphics/sane-backends/patches/patch-frontend_scanimage_c
alek f7f343abcf Import sane-backends 1.0.16
SANE stands for "Scanner Access Now Easy" and is an application
programming interface (API) that provides standardized access to any
raster image scanner hardware (flatbed scanner, hand-held scanner,
video- and still-cameras, frame-grabbers, etc.).

From Antoine Jacoutot <ajacoutot@lphp.org>
2005-10-03 21:15:04 +00:00

13 lines
454 B
Plaintext

$OpenBSD: patch-frontend_scanimage_c,v 1.1.1.1 2005/10/03 21:15:04 alek Exp $
--- frontend/scanimage.c.orig Sun Oct 2 16:17:35 2005
+++ frontend/scanimage.c Sun Oct 2 16:23:55 2005
@@ -172,7 +172,7 @@ auth_callback (SANE_String_Const resourc
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'))