summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorcmiller@zippy.(none) <>2006-06-13 16:06:35 -0400
committercmiller@zippy.(none) <>2006-06-13 16:06:35 -0400
commit00243ac8478d79a81345f063643df46777f8ea06 (patch)
tree8719a5a0706de5334b4142c3a7f4efeec5419444 /mysys
parent8e2aee1c014d9c4b47ab010a324ccd5313bede8e (diff)
parent194c447b1b183a2823e1cb28cfd9a563aa83c5c2 (diff)
downloadmariadb-git-00243ac8478d79a81345f063643df46777f8ea06.tar.gz
Merge zippy.(none):/home/cmiller/work/mysql/merge/tmp_merge
into zippy.(none):/home/cmiller/work/mysql/merge/mysql-5.1-new
Diffstat (limited to 'mysys')
-rw-r--r--mysys/mf_fn_ext.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mysys/mf_fn_ext.c b/mysys/mf_fn_ext.c
index 9c86a8072ef..d7b1f8c1d61 100644
--- a/mysys/mf_fn_ext.c
+++ b/mysys/mf_fn_ext.c
@@ -40,14 +40,14 @@ my_string fn_ext(const char *name)
DBUG_ENTER("fn_ext");
DBUG_PRINT("mfunkt",("name: '%s'",name));
-#if defined(FN_DEVCHAR) || defined(FN_C_AFTER_DIR)
+#if defined(FN_DEVCHAR) || defined(FN_C_AFTER_DIR) || defined(BASKSLASH_MBTAIL)
{
char buff[FN_REFLEN];
gpos=(my_string) name+dirname_part(buff,(char*) name);
}
#else
- if (!(gpos=strrchr(name,FNLIBCHAR)))
- gpos=name;
+ if (!(gpos= strrchr(name, FN_LIBCHAR)))
+ gpos= (my_string) name;
#endif
pos=strchr(gpos,FN_EXTCHAR);
DBUG_RETURN (pos ? pos : strend(gpos));