From 156471c2a7adf5524467ea22c76cc1fb8e21f476 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 18 Jun 2008 20:12:55 +0000 Subject: [PATCH] - fixes svn path=/trunk/boinc_samples/; revision=15429 --- wrapper/wrapper.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wrapper/wrapper.C b/wrapper/wrapper.C index c7d6af156b..a1dee46f0b 100644 --- a/wrapper/wrapper.C +++ b/wrapper/wrapper.C @@ -242,7 +242,7 @@ int TASK::run(int argct, char** argvt) { p += strlen("$PROJECT_DIR"); sprintf(app_path, "%s%s", aid.project_dir, p); } else { - boinc_resolve_filename(buf, app_path); + boinc_resolve_filename(buf, app_path, sizeof(app_path)); } // Append wrapper's command-line arguments to those in the job file. @@ -305,7 +305,7 @@ int TASK::run(int argct, char** argvt) { SetThreadPriority(thread_handle, THREAD_PRIORITY_IDLE); #else int retval, argc; - char progname[256], buf[256]; + char progname[256]; char* argv[256]; char arglist[4096]; FILE* stdout_file;