From: hgn Date: Wed, 12 Oct 2022 22:34:59 +0000 (+0100) Subject: formatting X-Git-Url: https://skaterift.com/git/?a=commitdiff_plain;h=4fe5ceb89da36e746227675b8928e9d74cc18f95;p=carveJwlIkooP6JGAAIwe30JlM.git formatting --- 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;