| # | Line 40 | Line 40 | static const char RCSid[] = "$Id$"; | |
|---|---|---|
| 40 | ||
| 41 | #ifdef _WIN32 | |
| 42 | #include <io.h> | |
| 43 | – | #define snprintf printf_s |
| 43 | #define read _read | |
| 44 | #define open _open | |
| 45 | #define close _close | |
| # | Line 151 | Line 150 | ezxml_t ezxml_err(ezxml_root_t root, char *s, const ch | |
| 150 | char *t, fmt[EZXML_ERRL]; | |
| 151 | ||
| 152 | for (t = root->s; t < s; t++) if (*t == '\n') line++; | |
| 153 | < | snprintf(fmt, EZXML_ERRL, "[error near line %d]: %s", line, err); |
| 153 | > | sprintf(fmt, "[error near line %d]: %s", line, err); |
| 154 | ||
| 155 | va_start(ap, err); | |
| 156 | vsnprintf(root->err, EZXML_ERRL, fmt, ap); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |