diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-06 19:08:10 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-06 19:08:10 +0000 |
commit | 7d8f213e503f50ce492a7021e6d991e771c4e88a (patch) | |
tree | 4b42105600711dffde6a7b1156b7d9373f18129b /crawl-ref/source/hiscores.cc | |
parent | d717830fb8d47cb6ae2fe1fedc00240e9f5f601f (diff) | |
download | crawl-ref-7d8f213e503f50ce492a7021e6d991e771c4e88a.tar.gz crawl-ref-7d8f213e503f50ce492a7021e6d991e771c4e88a.zip |
Properly use apostrophise() in a few more places.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8275 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/hiscores.cc')
-rw-r--r-- | crawl-ref/source/hiscores.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/hiscores.cc b/crawl-ref/source/hiscores.cc index f48bcf90a6..49fe90b540 100644 --- a/crawl-ref/source/hiscores.cc +++ b/crawl-ref/source/hiscores.cc @@ -1084,18 +1084,18 @@ std::string scorefile_entry::game_time(death_desc_verbosity verbosity) const #ifdef MULTIUSER if (uid > 0) { - struct passwd *pw_entry = getpwuid( uid ); + struct passwd *pw_entry = getpwuid(uid); if (pw_entry) { - strncpy( username, pw_entry->pw_name, sizeof(username) ); - strncat( username, "'s", sizeof(username) ); - username[0] = toupper( username[0] ); + strncpy(username, pw_entry->pw_name, sizeof(username)); + username[0] = toupper(username[0]); + strncat(username, "'s", sizeof(username)); } } #endif - snprintf( scratch, INFO_SIZE, "%s game lasted %s (%ld turns).", - username, make_time_string(real_time).c_str(), - num_turns ); + snprintf(scratch, INFO_SIZE, "%s game lasted %s (%ld turns).", + username, make_time_string(real_time).c_str(), + num_turns); line += scratch; line += _hiscore_newline_string(); |