summaryrefslogtreecommitdiffstatshomepage
path: root/src/tools/imgtool/charconv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/imgtool/charconv.cpp')
-rw-r--r--src/tools/imgtool/charconv.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/imgtool/charconv.cpp b/src/tools/imgtool/charconv.cpp
index 34a912dcb89..a57d15e1a73 100644
--- a/src/tools/imgtool/charconv.cpp
+++ b/src/tools/imgtool/charconv.cpp
@@ -28,7 +28,7 @@ static char *utf8_from_latin1(const char *src)
}
/* allocate space for result, twice the source len to be safe */
- buffer = (char *) osd_malloc(strlen(src) * 2 + 1);
+ buffer = (char *) malloc(strlen(src) * 2 + 1);
/* point to the start */
bufptr = buffer;
@@ -73,7 +73,7 @@ static char *latin1_from_utf8(const char *src)
}
/* allocate space for result */
- buffer = (char *) osd_malloc(strlen(src) + 1);
+ buffer = (char *) malloc(strlen(src) + 1);
/* point to the start */
bufptr = buffer;