- add libbb function str_tolower to convert a string to lowercase.
[oweals/busybox.git] / coreutils / pwd.c
index bd36d627ef65ba363a37a101e0fc798a286719c7..d96f6a8e5219fb67b9624b7d47884ec2c7beee8f 100644 (file)
 #include <stdlib.h>
 #include "busybox.h"
 
+int pwd_main(int argc, char **argv);
 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);
        }