diff options
Diffstat (limited to 'tools/gator/daemon/mxml/mxml-string.c')
-rw-r--r-- | tools/gator/daemon/mxml/mxml-string.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/tools/gator/daemon/mxml/mxml-string.c b/tools/gator/daemon/mxml/mxml-string.c index 6be42523f95c..9d5b58e6adb7 100644 --- a/tools/gator/daemon/mxml/mxml-string.c +++ b/tools/gator/daemon/mxml/mxml-string.c @@ -1,9 +1,9 @@ /* - * "$Id: mxml-string.c 424 2010-12-25 16:21:50Z mike $" + * "$Id: mxml-string.c 454 2014-01-05 03:25:07Z msweet $" * * String functions for Mini-XML, a small XML-like file parsing library. * - * Copyright 2003-2010 by Michael R Sweet. + * Copyright 2003-2014 by Michael R Sweet. * * These coded instructions, statements, and computer programs are the * property of Michael R Sweet and are protected by Federal copyright @@ -11,15 +11,7 @@ * which should have been included with this file. If this file is * missing or damaged, see the license at: * - * http://www.minixml.org/ - * - * Contents: - * - * _mxml_snprintf() - Format a string. - * _mxml_strdup() - Duplicate a string. - * _mxml_strdupf() - Format and duplicate a string. - * _mxml_vsnprintf() - Format a string into a fixed size buffer. - * _mxml_vstrdupf() - Format and duplicate a string. + * http://www.msweet.org/projects.php/Mini-XML */ /* @@ -38,7 +30,7 @@ # ifdef __va_copy # define va_copy(dst,src) __va_copy(dst,src) # else -# define va_copy(dst,src) memcpy(&dst, &src, sizeof(va_list)) +# define va_copy(dst,src) memcpy(&dst, src, sizeof(va_list)) # endif /* __va_copy */ #endif /* va_copy */ @@ -157,7 +149,8 @@ _mxml_vsnprintf(char *buffer, /* O - Output buffer */ if (*format == '%') { - if (bufptr && bufptr < bufend) *bufptr++ = *format; + if (bufptr && bufptr < bufend) + *bufptr++ = *format; bytes ++; format ++; continue; @@ -472,5 +465,5 @@ _mxml_vstrdupf(const char *format, /* I - Printf-style format string */ /* - * End of "$Id: mxml-string.c 424 2010-12-25 16:21:50Z mike $". + * End of "$Id: mxml-string.c 454 2014-01-05 03:25:07Z msweet $". */ |