From 49eaf831ec671203a9ba9bc86c6e5af7446f5d06 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 19 May 1997 03:05:26 +0000 Subject: [PATCH] Use `bcopy' if there is no `memmove' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1740 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/snprintf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/roken/snprintf.c b/lib/roken/snprintf.c index 1b03c8c31..9926fd943 100644 --- a/lib/roken/snprintf.c +++ b/lib/roken/snprintf.c @@ -152,7 +152,11 @@ append_number (struct state *state, if ((*state->reserve) (state, width - len)) return 1; +#ifdef HAVE_MEMMOVE memmove (state->s + width - 2 * len, state->s - len, len); +#else + bcopy (state->s - len, state->s + width - 2 * len, len); +#endif for (i = 0; i < width - len; ++i) state->s[-len+i] = (zerop ? '0' : ' '); state->s += width - len;