X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/228b1c5f79749940e11247bd97626e21df7033bd..8315e7f4ea0204718e520e48a48739fd0371bd28:/avr/env.c diff --git a/avr/env.c b/avr/env.c index 3a12325..3b299c4 100644 --- a/avr/env.c +++ b/avr/env.c @@ -9,7 +9,6 @@ #include "config.h" #include "debug.h" -#include "xmalloc.h" #include "crc.h" @@ -194,7 +193,7 @@ int envlist_import(uint8_t flags) return -1; } - np = (char *) xmalloc(len+1); + np = (char *) malloc(len+1); if (np == NULL) { printf_P(PSTR("## Can't malloc %d bytes\n"), len+1); return 1; @@ -483,7 +482,7 @@ command_ret_t _do_env_set(uint_fast8_t flag, int argc, char * const argv[]) for (i = 2, len += 1; i < argc; ++i) len += strlen(argv[i]) + 1; - value = xmalloc(len); + value = malloc(len); if (value == NULL) { printf_P(PSTR("## Can't malloc %d bytes\n"), len); return CMD_RET_FAILURE;