From a89ae6f3c66b711fbcfdfb9b55b79b6ecab94b44 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 6 Dec 2010 03:10:01 +0000 Subject: [PATCH] svn path=/trunk/boinc/; revision=22821 --- samples/wrappture/wrappture_example.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/wrappture/wrappture_example.cpp b/samples/wrappture/wrappture_example.cpp index ec94a98857..80a9f5d26f 100644 --- a/samples/wrappture/wrappture_example.cpp +++ b/samples/wrappture/wrappture_example.cpp @@ -27,6 +27,7 @@ #include "wrappture.h" int main(int argc, char * argv[]) { + char buf[256]; RpLibrary* lib = NULL; @@ -43,8 +44,8 @@ int main(int argc, char * argv[]) { int err = 0; - // create a rappture library from the file filePath - lib = rpLibrary(argv[1]); + boinc_resolve_filename("driver.xml", buf, sizeof(buf)); + lib = rpLibrary(buf); if (lib == NULL) { // cannot open file or out of memory @@ -93,7 +94,6 @@ int main(int argc, char * argv[]) { RPLIB_OVERWRITE ); // Run core simulator - char buf[256]; sprintf(buf, "%g %g", T, Ef); int retval = boinc_run_rappture_app("fermi", buf); if (retval) {