From 46070615c315dd55247f61b699c682b280e3474b Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 12 Jan 2005 21:56:25 +0000 Subject: ensure null-termination after snprintf git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14479 b3059339-0415-0410-9bf9-f77b7e298cf2 --- cpudetect.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpudetect.c b/cpudetect.c index ac0fba6906..dda1b0f8ad 100644 --- a/cpudetect.c +++ b/cpudetect.c @@ -246,6 +246,7 @@ char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]){ } } } + retname[255] = 0; //printf("Detected CPU: %s\n", retname); return retname; -- cgit v1.2.3