aboutsummaryrefslogtreecommitdiff
path: root/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'strings.c')
-rw-r--r--strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strings.c b/strings.c
index 7c87e29..4164467 100644
--- a/strings.c
+++ b/strings.c
@@ -6,7 +6,7 @@ void uint32_to_dec(uint32_t number, char buf[10])
{
for (int i = 0; i < 10; i++)
{
- buf[10 - 1 - i] = number % 10;
+ buf[10 - 1 - i] = '0' + (number % 10);
number /= 10;
}
}