Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bugzilla bug 131289: fixed a UMR error and bad placement of the termi…
…nating

null byte of a string in nss_FindExternalRoot.  r=mcgreer.
  • Loading branch information
wtc%netscape.com committed Mar 15, 2002
1 parent 3a6d22c commit 46f22bd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions security/nss/lib/nss/nssinit.c
Expand Up @@ -288,11 +288,10 @@ nss_FindExternalRoot(const char *dbpath)

/* back up to the top of the directory */
PORT_Memcpy(path,dbpath,path_len);
if (path[path_len] != FILE_SEP) {
if (path[path_len-1] != FILE_SEP) {
path[path_len++] = FILE_SEP;
}
PORT_Memcpy(&path[path_len],dllname,PORT_Strlen(dllname));
path[len-1] = '\0';
PORT_Strcpy(&path[path_len],dllname);
(void) SECMOD_AddNewModule("Root Certs",path, 0, 0);
PORT_Free(path);
return;
Expand Down

0 comments on commit 46f22bd

Please sign in to comment.