projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
- add libbb function str_tolower to convert a string to lowercase.
[oweals/busybox.git]
/
coreutils
/
pwd.c
diff --git
a/coreutils/pwd.c
b/coreutils/pwd.c
index b4599b4f32dbcf9e48421c6503ede61fdf6fe08b..d96f6a8e5219fb67b9624b7d47884ec2c7beee8f 100644
(file)
--- a/
coreutils/pwd.c
+++ b/
coreutils/pwd.c
@@
-16,7
+16,8
@@
int pwd_main(int argc, char **argv)
{
char *buf;
- if ((buf = xgetcwd(NULL)) != NULL) {
+ buf = xrealloc_getcwd_or_warn(NULL);
+ if (buf != NULL) {
puts(buf);
fflush_stdout_and_exit(EXIT_SUCCESS);
}