Mercurial > geeqie.yaz
diff src/view_dir_tree.c @ 726:a1dcef8cd1ae
Use G_DIR_SEPARATOR where applicable.
author | zas_ |
---|---|
date | Wed, 21 May 2008 11:07:23 +0000 |
parents | eda074e91ddd |
children | 44128da39e13 |
line wrap: on
line diff
--- a/src/view_dir_tree.c Wed May 21 11:00:13 2008 +0000 +++ b/src/view_dir_tree.c Wed May 21 11:07:23 2008 +0000 @@ -206,7 +206,7 @@ strp = path; - if (*strp != '/') return NULL; + if (*strp != G_DIR_SEPARATOR) return NULL; strp++; strb = strp; @@ -214,7 +214,7 @@ while (*strp != '\0') { - if (*strp == '/') + if (*strp == G_DIR_SEPARATOR) { if (l > 0) list = g_list_prepend(list, g_strndup(strb, l)); strp++; @@ -465,14 +465,14 @@ gint n; n = strlen(nd->fd->path); - if (target_path[n] == '/' && target_path[n+1] == '.') + if (target_path[n] == G_DIR_SEPARATOR && target_path[n+1] == '.') { gchar *name8; struct stat sbuf; n++; - while (target_path[n] != '\0' && target_path[n] != '/') n++; + while (target_path[n] != '\0' && target_path[n] != G_DIR_SEPARATOR) n++; name8 = g_strndup(target_path, n); if (stat_utf8(name8, &sbuf))