mirror of https://github.com/mpv-player/mpv
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:
parent
70a7a6b450
commit
46070615c3
|
@ -246,6 +246,7 @@ char *GetCpuFriendlyName(unsigned int regs[], unsigned int regs2[]){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
retname[255] = 0;
|
||||||
|
|
||||||
//printf("Detected CPU: %s\n", retname);
|
//printf("Detected CPU: %s\n", retname);
|
||||||
return retname;
|
return retname;
|
||||||
|
|
Loading…
Reference in New Issue