aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/common/compat.h1
-rw-r--r--src/or/or.h1
-rw-r--r--src/or/routerparse.c2
3 files changed, 1 insertions, 3 deletions
diff --git a/src/common/compat.h b/src/common/compat.h
index 86ea0c41d4..630682e638 100644
--- a/src/common/compat.h
+++ b/src/common/compat.h
@@ -59,7 +59,6 @@
#include <io.h>
#include <math.h>
#include <projects.h>
-#define snprintf _snprintf
/* this is not exported as W .... */
#define SHGetPathFromIDListW SHGetPathFromIDList
/* wcecompat has vasprintf */
diff --git a/src/or/or.h b/src/or/or.h
index 459e18e466..6ec7c3a79c 100644
--- a/src/or/or.h
+++ b/src/or/or.h
@@ -81,7 +81,6 @@
#include <process.h>
#include <direct.h>
#include <windows.h>
-#define snprintf _snprintf
#endif
#ifdef USE_BUFFEREVENTS
diff --git a/src/or/routerparse.c b/src/or/routerparse.c
index 1aee4e5332..48744d6994 100644
--- a/src/or/routerparse.c
+++ b/src/or/routerparse.c
@@ -3828,7 +3828,7 @@ get_next_token(memarea_t *area,
if ((size_t)(eol-next) != 9+obname_len+5 ||
strcmp_len(next+9, tok->object_type, obname_len) ||
strcmp_len(eol-5, "-----", 5)) {
- snprintf(ebuf, sizeof(ebuf), "Malformed object: mismatched end tag %s",
+ tor_snprintf(ebuf, sizeof(ebuf), "Malformed object: mismatched end tag %s",
tok->object_type);
ebuf[sizeof(ebuf)-1] = '\0';
RET_ERR(ebuf);