From 1fb7d6704861411e4d4522145fef8c9a27e77d31 Mon Sep 17 00:00:00 2001 From: Roland Illig Date: Sat, 25 Sep 2004 19:57:20 +0000 Subject: [PATCH] * vfs.c (_vfs_get_class): Fixed segmentation fault introduced today. --- vfs/vfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vfs/vfs.c b/vfs/vfs.c index 5ae8c3a53..bc21cfd39 100644 --- a/vfs/vfs.c +++ b/vfs/vfs.c @@ -274,7 +274,7 @@ _vfs_get_class (const char *path) slash = strchr (semi, PATH_SEP); if (slash == NULL) - slash += strlen (slash); + slash = semi + strlen (semi); ret = vfs_prefix_to_class (semi+1, slash - (semi + 1));