svn commit: r267903 - stable/9/sys/kern

Sergey Kandaurov pluknet at FreeBSD.org
Thu Jun 26 08:44:29 UTC 2014


Author: pluknet
Date: Thu Jun 26 08:44:28 2014
New Revision: 267903
URL: http://svnweb.freebsd.org/changeset/base/267903

Log:
  MFC r261901:
  
  Preserve one character space for a trailing '\0'.

Modified:
  stable/9/sys/kern/subr_hints.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/kern/subr_hints.c
==============================================================================
--- stable/9/sys/kern/subr_hints.c	Thu Jun 26 08:41:54 2014	(r267902)
+++ stable/9/sys/kern/subr_hints.c	Thu Jun 26 08:44:28 2014	(r267903)
@@ -129,7 +129,7 @@ res_find(int *line, int *startln,
 		if (strncmp(cp, "hint.", 5) != 0)
 			hit = 0;
 		else
-			n = sscanf(cp, "hint.%32[^.].%d.%32[^=]=%128s",
+			n = sscanf(cp, "hint.%32[^.].%d.%32[^=]=%127s",
 			    r_name, &r_unit, r_resname, r_value);
 		if (hit && n != 4) {
 			printf("CONFIG: invalid hint '%s'\n", cp);


More information about the svn-src-stable-9 mailing list