diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-10-27 06:37:34 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-10-27 06:37:34 +0000 |
commit | 44d4516155309e15b3463a543aef6239d485a04e (patch) | |
tree | 0bf498a321c230f9fc777a307d94a9f5476f1aa8 /src/or/test.c | |
parent | 1aaedcb17159bbf724a56ae9e977504a68f0b8c9 (diff) | |
download | tor-44d4516155309e15b3463a543aef6239d485a04e.tar tor-44d4516155309e15b3463a543aef6239d485a04e.tar.gz |
Use tor_snprintf, not snprintf
svn:r2609
Diffstat (limited to 'src/or/test.c')
-rw-r--r-- | src/or/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/test.c b/src/or/test.c index fecf6be2b..0ce384ad5 100644 --- a/src/or/test.c +++ b/src/or/test.c @@ -50,7 +50,7 @@ setup_directory() int r; if (is_setup) return; - snprintf(temp_dir, sizeof(temp_dir), "/tmp/tor_test_%d", (int) getpid()); + tor_snprintf(temp_dir, sizeof(temp_dir), "/tmp/tor_test_%d", (int) getpid()); #ifdef MS_WINDOWS r = mkdir(temp_dir); #else @@ -69,7 +69,7 @@ get_fname(const char *name) { static char buf[1024]; setup_directory(); - snprintf(buf,sizeof(buf),"%s/%s",temp_dir,name); + tor_snprintf(buf,sizeof(buf),"%s/%s",temp_dir,name); return buf; } |