remove debug line
This commit is contained in:
parent
fd1bd8ef23
commit
00e9ab4555
1 changed files with 0 additions and 3 deletions
3
ccc.c
3
ccc.c
|
@ -903,9 +903,6 @@ char *replace_home(char *str)
|
|||
char *newstr = memalloc((strlen(str) + strlen(home)) * sizeof(char));
|
||||
/* replace ~ with home */
|
||||
snprintf(newstr, strlen(str) + strlen(home), "%s%s", home, str + 1);
|
||||
FILE *a = fopen("/home/night/a", "a+");
|
||||
fprintf(a, "%s\n", newstr);
|
||||
fclose(a);
|
||||
free(str);
|
||||
return newstr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue