Skip to content

Commit

Permalink
Used fmt::Format instead of sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
O1L committed Feb 22, 2015
1 parent 4d27198 commit deebe3c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rpcs3/Emu/RSX/CgBinaryFragmentProgram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,7 @@ std::string CgBinaryDisasm::AddConstDisAsm()
const u32 z = GetData(data[2]);
const u32 w = GetData(data[3]);

char buf[1024];
sprintf(buf, "{0x%08x(%g), 0x%08x(%g), 0x%08x(%g), 0x%08x(%g)}", x, (float&)x, y, (float&)y, z, (float&)z, w, (float&)w);

return fmt::format(buf);
return fmt::Format("{0x%08x(%g), 0x%08x(%g), 0x%08x(%g), 0x%08x(%g)}", x, (float&)x, y, (float&)y, z, (float&)z, w, (float&)w);
}

std::string CgBinaryDisasm::AddTexDisAsm()
Expand Down

0 comments on commit deebe3c

Please sign in to comment.