Skip to content

Commit

Permalink
Raspberry PI bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkubera committed Jan 10, 2017
1 parent d33e835 commit 377ed67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/PVRUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ extern int strtoint(string s)
extern string inttostr (int i)
{
string tmp;
sprintf((char*)tmp.c_str(), "%d", i);
string str = tmp.c_str();
return str;
tmp = std::to_string(i);
return tmp;
}

0 comments on commit 377ed67

Please sign in to comment.