diff options
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index b05bbde518..45a0664a5b 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -136,9 +136,7 @@ static void _redraw_all(void) static std::string _uid_as_string() { #ifdef MULTIUSER - char struid[20]; - snprintf( struid, sizeof struid, "-%d", static_cast<int>(getuid()) ); - return std::string(struid); + return make_stringf("-%d", static_cast<int>(getuid())); #else return std::string(); #endif |