From 448cd1b8d5bcaa29fb9e3d808a7701cfd4cc4b09 Mon Sep 17 00:00:00 2001 From: "cbiesinger%web.de" Date: Fri, 25 Apr 2003 11:19:42 +0000 Subject: [PATCH] 158054 patch by ajschult@eos.ncsu.edu r=sgehani sr=dveditz a=sspitzer unix installer crashes if Title not defined in config.ini --- xpinstall/wizard/unix/src2/nsXInstaller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xpinstall/wizard/unix/src2/nsXInstaller.cpp b/xpinstall/wizard/unix/src2/nsXInstaller.cpp index 72d263ec2ce1..f5aa13eacf1e 100644 --- a/xpinstall/wizard/unix/src2/nsXInstaller.cpp +++ b/xpinstall/wizard/unix/src2/nsXInstaller.cpp @@ -372,7 +372,7 @@ nsXInstaller::ParseGeneral(nsINIParser *aParser) else { err = OK; /* optional so no error if we didn't find it */ - strcpy(gCtx->opt->mTitle, gCtx->Res("DEFAULT_TITLE")); + gCtx->opt->mTitle = strdup(gCtx->Res("DEFAULT_TITLE")); } return err;