aboutsummaryrefslogtreecommitdiff
path: root/src/common/util.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2004-10-27 06:37:34 +0000
committerNick Mathewson <nickm@torproject.org>2004-10-27 06:37:34 +0000
commit44d4516155309e15b3463a543aef6239d485a04e (patch)
tree0bf498a321c230f9fc777a307d94a9f5476f1aa8 /src/common/util.c
parent1aaedcb17159bbf724a56ae9e977504a68f0b8c9 (diff)
downloadtor-44d4516155309e15b3463a543aef6239d485a04e.tar
tor-44d4516155309e15b3463a543aef6239d485a04e.tar.gz
Use tor_snprintf, not snprintf
svn:r2609
Diffstat (limited to 'src/common/util.c')
-rw-r--r--src/common/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c
index 2d09a3294..09a86ebdb 100644
--- a/src/common/util.c
+++ b/src/common/util.c
@@ -1773,7 +1773,7 @@ char *expand_filename(const char *filename)
* Round up to 16 in case we can't do math. */
len = strlen(home)+strlen(filename)+16;
result = tor_malloc(len);
- snprintf(result,len,"%s/%s",home,filename+2);
+ tor_snprintf(result,len,"%s/%s",home,filename+2);
return result;
} else {
return tor_strdup(filename);
@@ -1847,7 +1847,7 @@ get_uname(void)
#ifdef HAVE_UNAME
if (uname(&u) != -1) {
/* (linux says 0 is success, solaris says 1 is success) */
- snprintf(uname_result, 255, "%s %s %s",
+ tor_snprintf(uname_result, 255, "%s %s %s",
u.sysname, u.nodename, u.machine);
uname_result[255] = '\0';
} else