ref: 71b400b5c54617db2bea32a63aaa5256f67ed910
parent: 90f8bf709313babaccd27129947b5c697f8bf2fc
author: Erik de Castro Lopo <erikd@mega-nerd.com>
date: Wed Nov 14 03:05:25 EST 2018
tests/src-evaluate.c: Fix compiling warning
--- a/tests/src-evaluate.c
+++ b/tests/src-evaluate.c
@@ -236,7 +236,9 @@
cptr ++ ;
if (cptr != version_string)
- strncpy (version_string, cptr, sizeof (version_string)) ;
+ { strncpy (version_string, cptr, sizeof (version_string) - 1) ;
+ version_string [sizeof (version_string) - 1] = 0 ;
+ } ;
return ;
} /* get_version_string */