strcat becomes strcpy: trivial optimization

This commit is contained in:
ehouse 2006-05-25 04:07:49 +00:00
parent 3ca36f57fc
commit 75431f774c

View file

@ -641,8 +641,7 @@ ceWidthAndText( CEDrawCtx* dctx, HDC hdc, const DrawScoreInfo* dsi,
bullet[0] = '\0'; bullet[0] = '\0';
} }
buf[0] = '\0'; strcpy( buf, bullet );
strcat( buf, bullet );
sprintf( tmp, "%d", dsi->score ); sprintf( tmp, "%d", dsi->score );
strcat( buf, tmp ); strcat( buf, tmp );