diff options
author | Cornelius Gati <cgati@cfelsgi.desy.de> | 2013-02-19 12:29:02 +0100 |
---|---|---|
committer | Cornelius Gati <cgati@cfelsgi.desy.de> | 2013-02-19 12:29:02 +0100 |
commit | f784dcd956793fa13cb8d21e39620a0fcdb441b2 (patch) | |
tree | a42af41844ce5281de992e0c15b19f9104e0619d | |
parent | 9feb67ff1535974f9c9970b9af1780990c9398b7 (diff) | |
parent | 9aa90dd1f81f7ec449dad1e1da0cfd67eef65150 (diff) |
Merge branch 'tom/multicrystal' of ssh://git.bitwiz.org.uk/crystfel into tom/multicrystal
-rw-r--r-- | src/im-sandbox.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/im-sandbox.c b/src/im-sandbox.c index aeeb023c..5d42d17d 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -191,7 +191,9 @@ static void process_image(const struct index_args *iargs, char filename[1024]; /* Prefix to jump out of temporary folder */ - snprintf(filename, 1023, "../../%s", pargs->filename); + if ( pargs->filename[0] != '/' ) { + snprintf(filename, 1023, "../../%s", pargs->filename); + } image.features = NULL; image.data = NULL; |