Skip to content

Commit

Permalink
Use sprintf instead of snprintf to retain compatibility on some arches
Browse files Browse the repository at this point in the history
snprintf() is not available on some arm arches, and there's no desperate need
to use it in slim.
  • Loading branch information
axs-gentoo committed Sep 14, 2015
1 parent e58099a commit 9b45216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ namespace Ck {

vt = *((long *)return_value);

std::snprintf(device, 32, "/dev/tty%ld", vt);
std::sprintf(device, "/dev/tty%ld", vt);

if(return_value)
XFree(return_value);
Expand Down

0 comments on commit 9b45216

Please sign in to comment.