mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-07 05:24:46 +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';
|
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 );
|
||||||
|
|
Loading…
Reference in a new issue