#15 escputil.c bugfix in parsing ink level response

closed
nobody
None
5
2006-05-28
2005-01-04
Manu
No

in escputil.c, in the function void do_ink_level(void);
the parsing has a bug: any response containing an 'I'
but before the expected "IQ:" induces an infinite loop
(ind is not being incremented in the loop). The fix
uses strstr instead of the current code.

Discussion

  • Manu
    Manu
    2005-01-04

    Patch to escputil.c

     
    Attachments
  • Robert Krawitz
    Robert Krawitz
    2006-05-28

    • status: open --> closed
     
  • Robert Krawitz
    Robert Krawitz
    2006-05-28

    Logged In: YES
    user_id=5436

    This patch was integrated a while back (and the code has
    been extensively rewritten, anyway).