pixma_bjnp.c: use MDL instead of DES string as model for the scanner.

This avoids lookup mismatches due to unnessacary additions like "Canon" opr "Pixma" in the string
merge-requests/1/head
Louis Lagendijk 2012-09-08 19:15:06 +02:00
rodzic 57d117a2d4
commit 5997295720
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -234,9 +234,9 @@ parse_IEEE1284_to_model (char *scanner_id, char *model)
tok = strtok (s, ";");
while (tok != NULL)
{
/* DES contains make and model */
/* MDL contains make and model */
if (strncmp (tok, "DES:", 4) == 0)
if (strncmp (tok, "MDL:", 4) == 0)
{
strcpy (model, tok + 4);
return 1;