X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fish%2Ffish.c;h=3f534defcbd58c952215fe2616df01d8f8d86bfd;hb=747eb7138ada2c999abc686fc5de18bcad96a1b7;hp=cd1029667b071b4b1c3f13e9c8a05ca0dbced8be;hpb=539bf7e8983c53c4cf79ffa64302bef1585bec31;p=libguestfs.git diff --git a/fish/fish.c b/fish/fish.c index cd10296..3f534de 100644 --- a/fish/fish.c +++ b/fish/fish.c @@ -1340,7 +1340,7 @@ resolve_win_path (const char *path) char *ret; size_t i; - if (strncasecmp (path, "win:", 4) != 0) { + if (STRCASENEQLEN (path, "win:", 4)) { ret = strdup (path); if (ret == NULL) perror ("strdup"); @@ -1350,7 +1350,7 @@ resolve_win_path (const char *path) path += 4; /* Drop drive letter, if it's "C:". */ - if (strncasecmp (path, "c:", 2) == 0) + if (STRCASEEQLEN (path, "c:", 2)) path += 2; if (!*path) {