summaryrefslogtreecommitdiffstats
path: root/loader/win32.c
diff options
context:
space:
mode:
authoral3x <al3x@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-11 12:47:48 +0000
committeral3x <al3x@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-06-11 12:47:48 +0000
commit17a8a234ffabf7357d79e0e794c7ebb101ae2659 (patch)
treeac2ccc5ded4b1315d7b3b10ba7ae9bf9bbf7b94a /loader/win32.c
parentee6d3b42d1689b71f027878cc41473de3e6455e1 (diff)
downloadmpv-17a8a234ffabf7357d79e0e794c7ebb101ae2659.tar.bz2
mpv-17a8a234ffabf7357d79e0e794c7ebb101ae2659.tar.xz
some possible buffer overflow places fixed
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1097 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'loader/win32.c')
-rw-r--r--loader/win32.c6
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;