ensure null-termination after snprintf

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14479 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-01-12 21:56:25 +00:00
parent 70a7a6b450
commit 46070615c3
1 changed files with 1 additions and 0 deletions

View File

@ -246,6 +246,7 @@ char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]){
}
}
}
retname[255] = 0;
//printf("Detected CPU: %s\n", retname);
return retname;