aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCornelius Gati <cgati@cfelsgi.desy.de>2013-02-19 12:29:19 +0100
committerCornelius Gati <cgati@cfelsgi.desy.de>2013-02-19 12:29:19 +0100
commit94a2c933b40d8c6c8f085794cb55de6dac684316 (patch)
tree09837e4f218b8d8a1405a0e51522ce6f79a093e8
parent6501edc62d77bb2bf9095bfcc834bb5d68e7ba0f (diff)
parentf784dcd956793fa13cb8d21e39620a0fcdb441b2 (diff)
Merge branch 'tom/multicrystal' into cornelius/xds
-rw-r--r--src/im-sandbox.c4
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;