commit | f4433a8d5d3076775bdd1a996a47db7beb468ac0 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Wed Sep 08 21:44:47 2010 +0200 |
committer | Chris Wilson <chris@chris-wilson.co.uk> | Wed Sep 08 21:20:22 2010 +0100 |
tree | 383a5cdc743169e64b82e29614ecc498f12bffc5 | |
parent | 19966754328d99ee003ddfc7a8c31ceb115483ac [diff] |
i915: snprintf returns large values snprintf() returns the number of bytes which would have been used if there was enough space. It can be larger than the size of the buffer. Obviously in this case the buffer is large enough but everyone just copy and pastes this code so it's better to limit it and set a good example. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>