tIndentation. - git-restrict - simple utility for git repo permission management HTML git clone https://git.parazyd.org/git-restrict DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit fce572f45c5e908503ec65ae66e06d7cb0203b8a DIR parent 6e46a06adce88c9b0bfdd57b039d6aebeaed5ca8 HTML Author: parazyd <parazyd@dyne.org> Date: Wed, 31 Mar 2021 04:23:38 +0200 Indentation. Diffstat: M git-restrict.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- DIR diff --git a/git-restrict.c b/git-restrict.c t@@ -45,10 +45,11 @@ int main(int argc, char *argv[]) die("fatal: Unauthorized command."); /* Remove ' prefix and suffix */ - repo++; repo[strlen(repo)-1] = 0; + repo++; + repo[strlen(repo) - 1] = 0; for (i = 1; i < argc; i++) { - buf = malloc(strlen(repo)+4); + buf = malloc(strlen(repo) + 4); sprintf(buf, "%s.git", argv[i]); if (!strcmp(argv[i], repo) || !strcmp(buf, repo)) {