formatting
authorhgn <hgodden00@gmail.com>
Wed, 12 Oct 2022 22:34:59 +0000 (23:34 +0100)
committerhgn <hgodden00@gmail.com>
Wed, 12 Oct 2022 22:34:59 +0000 (23:34 +0100)
highscores.h

index ef5d9f4d3b38528281cbbbd0fff88715d8fe77e0..931c70897ff1b6411d828ec5ad91bb2a7893716e 100644 (file)
@@ -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;