Fixed bug reported by Johannes Meixner, see

http://lists.alioth.debian.org/pipermail/sane-devel/2006-January/015941.html
merge-requests/2/head
Gerhard Jaeger 2006-01-18 09:20:29 +00:00
rodzic 395252831d
commit 5113e3de39
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1284,7 +1284,7 @@ scan_dialog (GtkWidget * widget, gpointer call_data)
{ /* We are running in standalone mode */
/* test for pnm formats */
strncpy (testfilename, preferences.filename, sizeof (testfilename));
testfilename[sizeof (testfilename)] = 0;
testfilename[sizeof (testfilename) - 1] = 0;
g_strreverse (testfilename);
if (!((!strncmp (testfilename, "mnp.", 4)) ||
(!strncmp (testfilename, "mgp.", 4)) ||