X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/92884625549fcd1e49acf8fde1d54bd537a80072..0298e050ec1f14cd590771612ad5a88d0bc9e9de:/uip/mhstoresbr.c diff --git a/uip/mhstoresbr.c b/uip/mhstoresbr.c index 9c38a588..8360eecd 100644 --- a/uip/mhstoresbr.c +++ b/uip/mhstoresbr.c @@ -674,7 +674,7 @@ got_filename: int cwdlen = strlen (info->cwd); fprintf (stderr, " as file %s\n", - strncmp (ct->c_storage, info->cwd, cwdlen) + !HasPrefix(ct->c_storage, info->cwd) || ct->c_storage[cwdlen] != '/' ? ct->c_storage : ct->c_storage + cwdlen + 1); }