Mercurial > illumos > illumos-gate
changeset 11971:ddd5873f34a9
6930495 hvm update_default_path memory corruption
author | Stuart Maybee <Stuart.Maybee@Sun.COM> |
---|---|
date | Mon, 22 Mar 2010 10:41:54 -0700 |
parents | 9c3f3660b754 |
children | 9d64ec5b0768 |
files | usr/src/uts/i86pc/os/startup.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/i86pc/os/startup.c Mon Mar 22 10:36:28 2010 -0700 +++ b/usr/src/uts/i86pc/os/startup.c Mon Mar 22 10:41:54 2010 -0700 @@ -1431,7 +1431,7 @@ */ current = (default_path == NULL) ? kobj_module_path : default_path; - newlen = strlen(HVM_MOD_DIR) + strlen(current) + 1; + newlen = strlen(HVM_MOD_DIR) + strlen(current) + 2; newpath = kmem_alloc(newlen, KM_SLEEP); (void) strcpy(newpath, HVM_MOD_DIR); (void) strcat(newpath, " ");