diff --git a/src/util/virfile.c b/src/util/virfile.c index b72d18b3d2e9447c43ac58dc822b57df4ad46574..0f0d607c595078de497098fedec143d69216182d 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -3278,7 +3278,7 @@ virFileRemoveLastComponent(char *path) { char *tmp; - if ((tmp = strrchr(path, VIR_FILE_DIR_SEPARATOR))) + if ((tmp = strrchr(path, G_DIR_SEPARATOR))) tmp[1] = '\0'; else path[0] = '\0';