A size_t should be format 'n' not 'i'.  Fixes #48.