1
0
Fork 0
forked from len0rd/rockbox

Dave Chapman removed the annoying extra slash

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@456 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2002-05-06 06:17:32 +00:00
parent ff2e651d29
commit 0b306a456b

View file

@ -8,7 +8,7 @@ DIR *x11_opendir(char *name)
char buffer[256]; /* sufficiently big */
if(name[0] == '/') {
sprintf(buffer, "%s/%s", SIMULATOR_ARCHOS_ROOT, name);
sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name);
return opendir(buffer);
}
return opendir(name);
@ -19,7 +19,7 @@ int x11_open(char *name, int opts)
char buffer[256]; /* sufficiently big */
if(name[0] == '/') {
sprintf(buffer, "%s/%s", SIMULATOR_ARCHOS_ROOT, name);
sprintf(buffer, "%s%s", SIMULATOR_ARCHOS_ROOT, name);
Logf("We open the real file '%s'", buffer);
return open(buffer, opts);