From f0aaada10bf4abcc02b08e01b496e185d922056f Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Tue, 28 Jan 2003 21:37:51 +0000 Subject: [PATCH] bug fix svn path=/trunk/boinc/; revision=838 --- client/app.C | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/app.C b/client/app.C index facb940c76..3acb23cd58 100644 --- a/client/app.C +++ b/client/app.C @@ -136,7 +136,8 @@ int ACTIVE_TASK::start(bool first_time) { // TODO: fill in the app prefs, team name, etc. strncpy( aid.user_name, wup->project->user_name, 256 ); - strncpy( aid.app_preferences, wup->project->project_specific_prefs, 4096 ); + if (wup->project->project_specific_prefs) + strncpy( aid.app_preferences, wup->project->project_specific_prefs, 4096 ); aid.total_cobblestones = wup->project->user_total_credit; aid.recent_avg_cobblestones = wup->project->user_expavg_credit; aid.checkpoint_period = DEFAULT_CHECKPOINT_PERIOD;