(xyzprintf): try to do the right thing with an % at the end of the

format string


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7349 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-11-12 15:32:43 +00:00
parent 1daa01306f
commit d9ebc322c1

View File

@@ -435,6 +435,9 @@ xyzprintf (struct state *state, const char *char_format, va_list ap)
*arg = state->s - state->str;
break;
}
case '\0' :
--format;
/* FALLTHROUGH */
case '%' :
if ((*state->append_char)(state, c))
return -1;