changeset 14478:d04cbfe4ea8d

ensure null-termination after snprintf
author reimar
date Wed, 12 Jan 2005 21:56:25 +0000
parents 92553e3c8f01
children cae0dbeb44bb
files cpudetect.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cpudetect.c	Wed Jan 12 20:43:53 2005 +0000
+++ b/cpudetect.c	Wed Jan 12 21:56:25 2005 +0000
@@ -246,6 +246,7 @@
 			}
 		}
 	}
+	retname[255] = 0;
 
 	//printf("Detected CPU: %s\n", retname);
 	return retname;