(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:
@@ -435,6 +435,9 @@ xyzprintf (struct state *state, const char *char_format, va_list ap)
|
|||||||
*arg = state->s - state->str;
|
*arg = state->s - state->str;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case '\0' :
|
||||||
|
--format;
|
||||||
|
/* FALLTHROUGH */
|
||||||
case '%' :
|
case '%' :
|
||||||
if ((*state->append_char)(state, c))
|
if ((*state->append_char)(state, c))
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user