PERFORCE change 51364 for review
Andrew Reisse
areisse at FreeBSD.org
Mon Apr 19 19:38:51 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=51364
Change 51364 by areisse at areisse_ibook on 2004/04/19 12:38:22
Don't store data to an uninitialized pointer
Affected files ...
.. //depot/projects/trustedbsd/sedarwin73/apsl/BootX/bootx.tproj/sl.subproj/main.c#6 edit
Differences ...
==== //depot/projects/trustedbsd/sedarwin73/apsl/BootX/bootx.tproj/sl.subproj/main.c#6 (text+ko) ====
@@ -612,7 +612,7 @@
args->exdata = NULL;
args->exdatalen = 0;
- char *prevname = "", *propname;
+ char *prevname = "", propname[128];
while (1) {
if (1 != NextProp (gOptionsPH, prevname, propname))
break;
@@ -1041,7 +1041,6 @@
strcpy(gExtensionsSpec + cnt, "System\\Library\\");
}
- strcpy (gRootDir, gExtensionsSpec);
SetProp(gChosenPH, "rootpath", gBootFile, strlen(gBootFile) + 1);
gBootSourceNumber++;
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list