valenok/mongoose — pull request #7 by GerHobbelt (2012-08-18 22:51:45+00:00)
Title: Low hanging pull fruit 1

See the commit comments + diffs; they're pretty self-explanatory.

Basically this is
- strengthened printf() checking,
- a bit of error propagation when our delta is only one line or so per instance,
- typecasts to fix the difference between int, size_t and ptrdiff_t (that's what you get implicitly when subtracting two pointers): without the casts you get breakage on non-LP64 platforms for printf("%*s")-similar calls where '*' is fed from a size_t or ptrdiff_t,
- several comment fixe: wording & typos