From 435d23a0497c2c0b1eac6f07ceb9e2930c913694 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 17 Mar 2015 22:11:57 +0000 Subject: [PATCH] error(): use _itoa We can then kill off itoa --- Library/libs/error.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/libs/error.c b/Library/libs/error.c index a6f3980f..3af05e2d 100644 --- a/Library/libs/error.c +++ b/Library/libs/error.c @@ -48,7 +48,7 @@ char *strerror(int err) ++i; } } -UErr: strcpy(retbuf, "Unknown error "); - itoa(err, retbuf + strlen(retbuf), 10); +UErr: strcpy(retbuf, "Unknown error "); + strncat(retbuf, _itoa(err), 10); return retbuf; } -- 2.34.1