From 4ef71a60868512d286555f38eabd3eea016858e8 Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Tue, 9 Feb 1999 03:21:34 +0000 Subject: [PATCH] Oops...one of my changes got lost...if you are reading in user data, don't write it into m_userData unless the user actually entered a value...if you do write in it, we step on the default value which is alredy in m_userData... git-svn-id: svn://10.0.0.236/trunk@20083 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/mailnews/news/tests/nntpTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mozilla/mailnews/news/tests/nntpTest.cpp b/mozilla/mailnews/news/tests/nntpTest.cpp index 93a10506c84..c350773506d 100644 --- a/mozilla/mailnews/news/tests/nntpTest.cpp +++ b/mozilla/mailnews/news/tests/nntpTest.cpp @@ -342,7 +342,8 @@ nsresult nsNntpTestDriver::PromptForUserDataAndBuildUrl(const char * userPrompt) // only replace m_userData if the user actually entered a valid line... // this allows the command function to set a default value on m_userData before // calling this routine.... - PL_strcpy(m_userData, tempBuffer); + if (tempBuffer && *tempBuffer) + PL_strcpy(m_userData, tempBuffer); return NS_OK; }