commit | b5d43b81a8abdf17bc3aa585a66215ebe3ba3671 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Sat Apr 28 14:58:35 2012 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sat Apr 28 14:58:35 2012 +0200 |
tree | 2b1f8e75bd7c2cbaa66a117cc88712c26763b31f | |
parent | e0bc222263cf47a43e1b26d55edb2ffadc8ccbff [diff] |
Fix printstr's len parameter width We often pass syscall params and other long-sized values as printstr(len). Truncating them to int may be a bad thing. * defs.h: Change len parameter's type from int to long in string_quote and printstr function declarations. * util.c (string_quote): Special-case only len==-1, not all len<0. (printstr): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>