Re: [PATCH 3/4] Pull refs by HTTP From: Edgar Toernig <hidden> Date: 2016-06-15 22:41:57 Daniel Barkalow wrote: + url = xmalloc(strlen(base) + 7 + strlen(dir) + strlen(name)); + strcpy(url, base); + posn = url + strlen(base); + strcpy(posn, "refs/"); + posn += 5; + strcpy(posn, dir); + posn += strlen(dir); + *(posn++) = '/'; + strcpy(posn, name); Have you ever heard of sprintf & co? sprintf(url, "%srefs/%s/%s", base, dir, name); Ciao, ET.
Keyboard shortcuts hback out one level jnext message in thread kprevious message in thread ldrill in Escclose help / fold thread tree ?toggle this help