X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=installer%2Futils.c;fp=installer%2Futils.c;h=0000000000000000000000000000000000000000;hb=57b37b6999c742d9749001df3e8694124f2715dc;hp=cce762ea23d4d581290483236b34454abb28bcd3;hpb=c672a4c1f3d6c588e4fc93355f9e89cca773c02d;p=swftools.git diff --git a/installer/utils.c b/installer/utils.c deleted file mode 100644 index cce762e..0000000 --- a/installer/utils.c +++ /dev/null @@ -1,18 +0,0 @@ -char* concatPaths(const char*base, const char*add) -{ - int l1 = strlen(base); - int l2 = strlen(add); - int pos = 0; - char*n = 0; - while(l1 && base[l1-1] == '\\') - l1--; - while(pos < l2 && add[pos] == '\\') - pos++; - - n = (char*)malloc(l1 + (l2-pos) + 2); - memcpy(n,base,l1); - n[l1]='\\'; - strcpy(&n[l1+1],&add[pos]); - return n; -} -