X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=clients%2Fgtk2%2Fdolcon.c;h=b2392e1bce9601d02d87de8570de91b5724694d7;hb=2f4cd43c4483070e81c0862582a80b59a208f0dd;hp=64eaf3ecd3844c9e33ff910e7eed74bcb5b23315;hpb=0629dc44c9ec0313b0ca7591512350cba0d77558;p=doldaconnect.git diff --git a/clients/gtk2/dolcon.c b/clients/gtk2/dolcon.c index 64eaf3e..b2392e1 100644 --- a/clients/gtk2/dolcon.c +++ b/clients/gtk2/dolcon.c @@ -41,6 +41,7 @@ #include #include #include +#include #ifdef HAVE_CONFIG_H #include @@ -1165,9 +1166,8 @@ void handleresps(void) if((buf = icwcstombs(ires->argv[1].val.str, "UTF-8")) != NULL) { p = buf; - /* XXX: Too NMDC-specific! */ - if(strrchr(p, '\\') != NULL) - p = strrchr(p, '\\') + 1; + if(strrchr(p, '/') != NULL) + p = strrchr(p, '/') + 1; gtk_tree_store_set(srchmodel, &piter, 3, p, -1); free(buf); }