fixed compilation error in previous checkin

This commit is contained in:
Arvid Norberg 2006-07-23 19:42:59 +00:00
parent f1efa8c952
commit 5366971c39
1 changed files with 2 additions and 2 deletions

View File

@ -125,9 +125,9 @@ namespace
fingerprint ret("..", 0, 0, 0, 0);
ret.name[1] = 0;
ret.tag_version = 0;
if (sscanf(ids, "%c%d-%d-%d--", &ret.id[0], &ret.major_version, &ret.minor_version
if (sscanf(ids, "%c%d-%d-%d--", &ret.name[0], &ret.major_version, &ret.minor_version
, &ret.revision_version) != 4
|| !std::isprint(ret.id[0]))
|| !std::isprint(ret.name[0]))
return boost::optional<fingerprint>();
return boost::optional<fingerprint>(ret);