mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
git: fix off by one in strncmp
This commit is contained in:
parent
7276be7b2d
commit
15ceba4fc9
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ parseuri(char *uri, char *proto, char *host, char *port, char *path, char *repo)
|
|||
snprint(port, Nport, "80");
|
||||
else if(strncmp(proto, "hjgit", 5) == 0)
|
||||
snprint(port, Nport, "17021");
|
||||
else if(strncmp(proto, "gits", 5) == 0)
|
||||
else if(strncmp(proto, "gits", 4) == 0)
|
||||
snprint(port, Nport, "9419");
|
||||
else
|
||||
hasport = 0;
|
||||
|
|
Loading…
Reference in a new issue