Mercurial > dwindows
diff win/dw.c @ 1602:02641cd81203
Attempt to fix another Visual C warning in DEBUG mode building 32bit.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 26 Feb 2012 09:36:22 +0000 |
parents | 71e0a3ad07f7 |
children | fd3b7784ab53 |
line wrap: on
line diff
--- a/win/dw.c Sun Feb 26 09:21:35 2012 +0000 +++ b/win/dw.c Sun Feb 26 09:36:22 2012 +0000 @@ -4305,12 +4305,12 @@ LOGFONT _get_logfont(HDC hdc, char *fontname) { + int z, size = 9, len = (int)strlen(fontname); int Italic, Bold; char *myFontName; - int z, size = 9; LOGFONT lf = {0}; - for(z=0;z<strlen(fontname);z++) + for(z=0;z<len;z++) { if(fontname[z]=='.') break;