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);
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to