Introduction
Introduction Statistics Contact Development Disclaimer Help
tclone url is one line, strip newline - stagit - static git page generator
git clone git://src.adamsgaard.dk/stagit
Log
Files
Refs
README
LICENSE
---
commit f373cc7235deaec49d2aa86ecdb55c9dd6dc5282
parent e51ec34dbe4bce95f1677db9a4f32dfbe0ad3432
Author: Hiltjo Posthuma <[email protected]>
Date: Tue, 5 Jan 2016 21:43:14 +0100
clone url is one line, strip newline
Diffstat:
M stagit.c | 1 +
1 file changed, 1 insertion(+), 0 deletions(-)
---
diff --git a/stagit.c b/stagit.c
t@@ -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);
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.