Messages in this thread |  | | | Date | Sun, 01 Mar 2009 23:56:39 +0100 | | From | Roel Kluin <> | | Subject | lp: too large subtraction on unsigned? |
| |
vi drivers/char/lp.c +705
note that count is unsigned, and we do the loop:
do { if (canwrite > 0) { ... count -= written; } if (lf && canwrite <= 0) { ... count--; ... } } while (count > 0 && (CONSOLE_LP_STRICT || written > 0)); Isn't this wrong?
Roel
|  |