public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
002aada
)
error(): use _itoa
author
Alan Cox
<alan@linux.intel.com>
Tue, 17 Mar 2015 22:11:57 +0000
(22:11 +0000)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/Library/libs/error.c
b/Library/libs/error.c
index
a6f3980
..
3af05e2
100644
(file)
--- 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 ");
\r
+
strncat(retbuf, _itoa(err
), 10);
return retbuf;
}