* nothing.
*/
-static char steam_username_at_startup[128];
+static char steam_username_at_startup[128] = "Unassigned";
static void recv_steam_warning( int severity, const char *msg )
{
return 0;
}
-static void str_utf8_collapse( const char *str, char *buf, u32 length )
-{
+static u32 str_utf8_collapse( const char *str, char *buf, u32 length ){
u8 *ustr = (u8 *)str;
u32 utf32_code = 0x00000000;
u32 i=0, j=0, utf32_byte_ct=0;
- for(;i < length-1;){
+ for(;j < length-1;){
if( ustr[i] == 0x00 )
break;
}
buf[j] = 0x00;
+ return j;
}
static int steam_init(void){