diff --git a/src/song.cpp b/src/song.cpp index c90b3fca..26f57485 100644 --- a/src/song.cpp +++ b/src/song.cpp @@ -515,7 +515,7 @@ bool MPD::Song::isFormatOk(const std::string &type, const std::string &s) while (isdigit(s[++i])) { } if (!toGetFunction(s[i])) { - std::cerr << type << ": invalid character at position " << IntoStr(s[i]) << ": '" << s[i] << "'\n"; + std::cerr << type << ": invalid character at position " << IntoStr(i+1) << ": '" << s[i] << "'\n"; return false; } }