diff --git a/tools/times.c b/tools/times.c index 23e56ffbe..446227dce 100644 --- a/tools/times.c +++ b/tools/times.c @@ -2,11 +2,11 @@ #include #include -char *replace(char *str, char before, char after) +static void revncpy(char *dst, const char *src, size_t len) { - while (strchr(str,before)) - *strchr(str,before) = after; - return str; + int n = 0; + while (n++