summaryrefslogtreecommitdiffstats
path: root/adb/sysdeps.h
diff options
context:
space:
mode:
Diffstat (limited to 'adb/sysdeps.h')
-rw-r--r--adb/sysdeps.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/adb/sysdeps.h b/adb/sysdeps.h
index 59e5b0b..3550a44 100644
--- a/adb/sysdeps.h
+++ b/adb/sysdeps.h
@@ -502,12 +502,12 @@ static __inline__ void adb_sysdeps_init(void)
static __inline__ char* adb_dirstart(const char* path)
{
- return strchr(path, '/');
+ return (char*) strrchr(path, '/');
}
static __inline__ char* adb_dirstop(const char* path)
{
- return strrchr(path, '/');
+ return (char*) strrchr(path, '/');
}
static __inline__ int adb_is_absolute_host_path( const char* path )