Skip to content

Commit f50b07e

Browse files
committed
cp: use DATA_XFER_LIMIT
1 parent 61f28c4 commit f50b07e

File tree

1 file changed

+2
-1
lines changed
  • uspace/app/bdsh/cmds/modules/cp

1 file changed

+2
-1
lines changed

uspace/app/bdsh/cmds/modules/cp/cp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2727
*/
2828

29+
#include <abi/ipc/ipc.h> /* DATA_XFER_LIMIT */
2930
#include <errno.h>
3031
#include <str_error.h>
3132
#include <stdio.h>
@@ -44,7 +45,7 @@
4445
#include "cmds.h"
4546

4647
#define CP_VERSION "0.0.1"
47-
#define CP_DEFAULT_BUFLEN 1024
48+
#define CP_DEFAULT_BUFLEN DATA_XFER_LIMIT
4849

4950
static const char *cmdname = "cp";
5051
static console_ctrl_t *con;

0 commit comments

Comments
 (0)