mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-03 23:04:08 +01:00
strcat becomes strcpy: trivial optimization
This commit is contained in:
parent
3ca36f57fc
commit
75431f774c
1 changed files with 1 additions and 2 deletions
|
@ -641,8 +641,7 @@ ceWidthAndText( CEDrawCtx* dctx, HDC hdc, const DrawScoreInfo* dsi,
|
|||
bullet[0] = '\0';
|
||||
}
|
||||
|
||||
buf[0] = '\0';
|
||||
strcat( buf, bullet );
|
||||
strcpy( buf, bullet );
|
||||
|
||||
sprintf( tmp, "%d", dsi->score );
|
||||
strcat( buf, tmp );
|
||||
|
|
Loading…
Reference in a new issue