From ca39f5ae7631e3bedf6114f7ebe7dfa2a8579f76 Mon Sep 17 00:00:00 2001 From: alfredoport Date: Fri, 24 Oct 2008 22:25:33 +0000 Subject: Use oa_getenv function. --- src/graph/viewAlone/spoon2D.c | 2 +- src/graph/viewAlone/spoonComp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graph/viewAlone') diff --git a/src/graph/viewAlone/spoon2D.c b/src/graph/viewAlone/spoon2D.c index c50e4ba3..9ad458d8 100644 --- a/src/graph/viewAlone/spoon2D.c +++ b/src/graph/viewAlone/spoon2D.c @@ -81,7 +81,7 @@ spoonView2D(void) close(pipe1[1]); printf("(spoon2D child) start the TwoDimensionalViewport process\n"); sprintf(errorStr,"%s","(viewAlone) execution of the TwoDimensionalViewport process"); - sprintf(envAXIOM,"%s",getenv("AXIOM")); + sprintf(envAXIOM,"%s",oa_getenv("AXIOM")); sprintf(runView,"%s%s",envAXIOM,"/lib/view2D"); check(execl(runView,runView,NULL)); fprintf(stderr,"Could not execute view2D! Check that view2D is on your path variable.\n"); diff --git a/src/graph/viewAlone/spoonComp.c b/src/graph/viewAlone/spoonComp.c index 92902443..3c828a44 100644 --- a/src/graph/viewAlone/spoonComp.c +++ b/src/graph/viewAlone/spoonComp.c @@ -83,7 +83,7 @@ spoonView3D(int type) sprintf(errorStr,"%s", "(viewAlone) execution of the ThreeDimensionalViewport process"); - sprintf(envAXIOM,"%s",getenv("AXIOM")); + sprintf(envAXIOM,"%s",oa_getenv("AXIOM")); sprintf(runView,"%s%s",envAXIOM,"/lib/view3D"); check(execl(runView,runView,NULL)); fprintf(stderr,"Could not execute view3D!\n"); -- cgit v1.2.3