From 4fe5ceb89da36e746227675b8928e9d74cc18f95 Mon Sep 17 00:00:00 2001 From: hgn Date: Wed, 12 Oct 2022 23:34:59 +0100 Subject: [PATCH] formatting --- highscores.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/highscores.h b/highscores.h index ef5d9f4..931c708 100644 --- a/highscores.h +++ b/highscores.h @@ -387,10 +387,10 @@ static aatree_ptr highscores_push_record( highscore_record *record ) static aatree_ptr highscore_set_user_nickname( u64 steamid, char nick[10] ) { - char name[11]; - for( int i=0; i<10; i++ ) + char name[17]; + for( int i=0; i<16; i++ ) name[i] = nick[i]; - name[10] = '\0'; + name[16] = '\0'; vg_low( "Updating %lu's nickname -> %s\n", steamid, name ); @@ -429,7 +429,7 @@ static aatree_ptr highscore_set_user_nickname( u64 steamid, char nick[10] ) record ); } - for( int i=0; i<10; i++ ) + for( int i=0; i<16; i++ ) info->nickname[i] = nick[i]; return AATREE_PTR_NIL; -- 2.25.1