X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=shell.c;h=c983fc7b86ed3c7792d4e325e4b88845719494d1;hb=9e64d109f905afb225f48409c4e0e068b2203332;hp=8c08cf0fb339d293383c3dacb8cdfc805afa3727;hpb=0f2ca9d5c99436d048bfe0a7161b4365a731938f;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;