diff options
Diffstat (limited to 'loader/win32.c')
-rw-r--r-- | loader/win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/loader/win32.c b/loader/win32.c index 323c99b1ad..4b06552570 100644 --- a/loader/win32.c +++ b/loader/win32.c @@ -771,7 +771,7 @@ void WINAPI expGetSystemInfo(SYSTEM_INFO* si) } } /* set the CPU type of the current processor */ - sprintf(buf,"CPU %ld",cachedsi.dwProcessorType); + snprintf(buf,20,"CPU %ld",cachedsi.dwProcessorType); continue; } /* old 2.0 method */ @@ -798,7 +798,7 @@ void WINAPI expGetSystemInfo(SYSTEM_INFO* si) } } /* set the CPU type of the current processor */ - sprintf(buf,"CPU %ld",cachedsi.dwProcessorType); + snprintf(buf,20,"CPU %ld",cachedsi.dwProcessorType); continue; } if (!lstrncmpiA(line,"fdiv_bug",strlen("fdiv_bug"))) { @@ -824,7 +824,7 @@ void WINAPI expGetSystemInfo(SYSTEM_INFO* si) /* Create a new processor subkey on a multiprocessor * system */ - sprintf(buf,"%d",x); + snprintf(buf,20,"%d",x); } if (!lstrncmpiA(line,"stepping",strlen("stepping"))) { int x; |