X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=shell.c;h=c983fc7b86ed3c7792d4e325e4b88845719494d1;hb=180a9f226860e18cdc2c3987ae89c239b318b408;hp=8c08cf0fb339d293383c3dacb8cdfc805afa3727;hpb=12d81ce59846e17676c5534257ca2f1783829d63;p=git.git diff --git a/shell.c b/shell.c index 8c08cf0fb..c983fc7b8 100644 --- a/shell.c +++ b/shell.c @@ -8,7 +8,7 @@ static int do_generic_cmd(const char *me, char *arg) if (!arg || !(arg = sq_dequote(arg))) die("bad argument"); - if (strncmp(me, "git-", 4)) + if (prefixcmp(me, "git-")) die("bad command"); my_argv[0] = me + 4;