clone url is one line, strip newline

This commit is contained in:
Hiltjo Posthuma 2016-01-05 21:43:14 +01:00
parent e51ec34dbe
commit f373cc7235

View file

@ -1008,6 +1008,7 @@ main(int argc, char *argv[])
if (fpread) {
if (!fgets(cloneurl, sizeof(cloneurl), fpread))
cloneurl[0] = '\0';
cloneurl[strcspn(cloneurl, "\n")] = '\0';
fclose(fpread);
}