error(): use _itoa
authorAlan Cox <alan@linux.intel.com>
Tue, 17 Mar 2015 22:11:57 +0000 (22:11 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 17 Mar 2015 22:11:57 +0000 (22:11 +0000)
We can then kill off itoa

Library/libs/error.c

index a6f3980..3af05e2 100644 (file)
@@ -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 ");\r
+       strncat(retbuf, _itoa(err), 10);
        return retbuf;
 }