From: Alan Cox Date: Tue, 17 Mar 2015 22:11:57 +0000 (+0000) Subject: error(): use _itoa X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=435d23a0497c2c0b1eac6f07ceb9e2930c913694;p=FUZIX.git error(): use _itoa We can then kill off itoa --- 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; }