diff options
author | Matt Kraai <kraai@debian.org> | 2000-09-13 06:46:14 +0400 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-09-13 06:46:14 +0400 |
commit | 322ae93a5e0b78b65831f9fd87fd456eb84d21a1 (patch) | |
tree | 5b967e1d873ff6eff8296bf9fda73825f0c55884 /coreutils/ln.c | |
parent | b89075298edf0a471b9046b1f3c8a936e18ead20 (diff) |
Fix calls to {m,c,re}alloc so that they use x{m,c,re}alloc instead of
segfaulting or handling errors the same way themselves.
Diffstat (limited to 'coreutils/ln.c')
-rw-r--r-- | coreutils/ln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/ln.c b/coreutils/ln.c index 8b8fa1c58..d5f44ea4c 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c @@ -90,7 +90,7 @@ extern int ln_main(int argc, char **argv) if (linkIntoDirFlag == TRUE) { char *baseName = get_last_path_component(*argv); - linkName = (char *)malloc(strlen(dirName)+strlen(baseName)+2); + linkName = (char *)xmalloc(strlen(dirName)+strlen(baseName)+2); strcpy(linkName, dirName); if(dirName[strlen(dirName)-1] != '/') strcat(linkName, "/"); |