summaryrefslogtreecommitdiffstats
path: root/cpudetect.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-12 21:56:25 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-01-12 21:56:25 +0000
commit46070615c315dd55247f61b699c682b280e3474b (patch)
tree8d176b0b27420568ebc84c18a2b90b1020202658 /cpudetect.c
parent70a7a6b4507e5b383707e6a9b8c02c17eadd91cc (diff)
downloadmpv-46070615c315dd55247f61b699c682b280e3474b.tar.bz2
mpv-46070615c315dd55247f61b699c682b280e3474b.tar.xz
ensure null-termination after snprintf
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14479 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'cpudetect.c')
-rw-r--r--cpudetect.c1
1 files changed, 1 insertions, 0 deletions
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;