Fix the pwd and group functions. The bb_ stuff was a leftover from
[oweals/busybox.git] / rpmunpack.c
index 512d6383922ea898126635b6f16c93c9021ade4e..85c7c9c1ee3fc1aaf4a77734bbd7e8b0410f0b00 100644 (file)
@@ -15,6 +15,9 @@
  
 #include "busybox.h" 
 #include <fcntl.h>
+#include <unistd.h>
+#include <string.h>
+#include <stdlib.h>
 
 /*
  * Some general definitions
@@ -51,7 +54,7 @@ static void myread(int num, char *buffer)
 int rpmunpack_main(int argc, char **argv)
 {
   int len, status = 0;
-  char buffer[BUFSIZ];
+  RESERVE_BB_BUFFER(buffer, BUFSIZ);
 
   /* Get our own program name */
   if ((progname = strrchr(argv[0], '/')) == NULL)