Mercurial > geeqie
diff src/pan-util.c @ 726:a1dcef8cd1ae
Use G_DIR_SEPARATOR where applicable.
author | zas_ |
---|---|
date | Wed, 21 May 2008 11:07:23 +0000 |
parents | e07895754e65 |
children | 44128da39e13 |
line wrap: on
line diff
--- a/src/pan-util.c Wed May 21 11:00:13 2008 +0000 +++ b/src/pan-util.c Wed May 21 11:07:23 2008 +0000 @@ -158,10 +158,10 @@ parse_out_relatives(sl); - if (buf[0] == '/') + if (buf[0] == G_DIR_SEPARATOR) { if (strncmp(sl, buf, l) == 0 && - (sl[l] == '\0' || sl[l] == '/' || l == 1)) ret = TRUE; + (sl[l] == '\0' || sl[l] == G_DIR_SEPARATOR || l == 1)) ret = TRUE; } else { @@ -171,7 +171,7 @@ parse_out_relatives(link_path); if (strncmp(sl, link_path, l) == 0 && - (sl[l] == '\0' || sl[l] == '/' || l == 1)) ret = TRUE; + (sl[l] == '\0' || sl[l] == G_DIR_SEPARATOR || l == 1)) ret = TRUE; g_free(link_path); }