Skip to content

Commit

Permalink
Tracker: Model: use SetToFormat.
Browse files Browse the repository at this point in the history
  • Loading branch information
waddlesplash committed May 8, 2015
1 parent 728d237 commit eb86604
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/kits/tracker/Model.cpp
Expand Up @@ -1310,10 +1310,8 @@ Model::GetVersionString(BString &result, version_kind kind)
if (error != B_OK)
return error;

char vstr[32];
sprintf(vstr, "%" B_PRId32 ".%" B_PRId32 ".%" B_PRId32, version.major,
result.SetToFormat("%" B_PRId32 ".%" B_PRId32 ".%" B_PRId32, version.major,
version.middle, version.minor);
result = vstr;

return B_OK;
}
Expand Down

0 comments on commit eb86604

Please sign in to comment.