diff options
Diffstat (limited to 'uisimulator/x11/io.c')
-rw-r--r-- | uisimulator/x11/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uisimulator/x11/io.c b/uisimulator/x11/io.c index 9551d101bb..974109a7fa 100644 --- a/uisimulator/x11/io.c +++ b/uisimulator/x11/io.c | |||
@@ -8,7 +8,7 @@ DIR *x11_opendir(char *name) | |||
8 | char buffer[256]; /* sufficiently big */ | 8 | char buffer[256]; /* sufficiently big */ |
9 | 9 | ||
10 | if(name[0] == '/') { | 10 | if(name[0] == '/') { |
11 | sprintf(buffer, "%s/%s", SIMULATOR_ARCHOS_ROOT, name); | 11 | sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); |
12 | return opendir(buffer); | 12 | return opendir(buffer); |
13 | } | 13 | } |
14 | return opendir(name); | 14 | return opendir(name); |
@@ -19,7 +19,7 @@ int x11_open(char *name, int opts) | |||
19 | char buffer[256]; /* sufficiently big */ | 19 | char buffer[256]; /* sufficiently big */ |
20 | 20 | ||
21 | if(name[0] == '/') { | 21 | if(name[0] == '/') { |
22 | sprintf(buffer, "%s/%s", SIMULATOR_ARCHOS_ROOT, name); | 22 | sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name); |
23 | 23 | ||
24 | Logf("We open the real file '%s'", buffer); | 24 | Logf("We open the real file '%s'", buffer); |
25 | return open(buffer, opts); | 25 | return open(buffer, opts); |