1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-12-08 14:34:41 +00:00
Due to different callback functions, RawDoFmt and VNewRawDoFmt
require different pointer to destination buffer. (see puttostr())
This commit is contained in:
deadwood
2022-01-18 20:32:25 +01:00
parent 8a54765316
commit 318ab6b1a5

View File

@ -118,7 +118,6 @@ void CountNewLinesAndChars(REGPARAM(d0, UBYTE, chr),
APTR DofmtArgs (char *buff, char *fmt, ...)
{
APTR retval;
char *str = buff;
#ifdef __AROS__
va_list ap;
@ -127,9 +126,10 @@ APTR DofmtArgs (char *buff, char *fmt, ...)
* - we will use VNewRawDoFmt() instead.
*/
va_start(ap, fmt);
retval = VNewRawDoFmt(fmt, (VOID_FUNC)RAWFMTFUNC_STRING, &str, ap);
retval = VNewRawDoFmt(fmt, (VOID_FUNC)RAWFMTFUNC_STRING, buff, ap);
va_end(ap);
#else
char *str = buff;
retval = RawDoFmt(fmt, &fmt + 1, (VOID_FUNC)puttostr, &str);
#endif