diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-03-09 21:39:30 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-03-09 21:39:30 +0000 |
commit | 02ce8e6b12d023d9097a754c91e45a928dc9f4e4 (patch) | |
tree | 9d6b529b5c68a49777b9014a0ef60420a3d2249d /src/or/rendservice.c | |
parent | d62e37b4a9200c35f44176b6e3fd159f9d7d1ea2 (diff) | |
download | tor-02ce8e6b12d023d9097a754c91e45a928dc9f4e4.tar.gz tor-02ce8e6b12d023d9097a754c91e45a928dc9f4e4.zip |
r12474@Kushana: nickm | 2007-03-06 16:10:05 -0500
We have a PATH_SEPARATOR macro. How about we use it?
svn:r9782
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 3c74e55770..db34797ef2 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -344,7 +344,8 @@ rend_service_load_keys(void) /* Load key */ if (strlcpy(fname,s->directory,sizeof(fname)) >= sizeof(fname) || - strlcat(fname,"/private_key",sizeof(fname)) >= sizeof(fname)) { + strlcat(fname,PATH_SEPARATOR"private_key",sizeof(fname)) + >= sizeof(fname)) { log_warn(LD_CONFIG, "Directory name too long to store key file: \"%s\".", s->directory); return -1; @@ -363,7 +364,8 @@ rend_service_load_keys(void) return -1; } if (strlcpy(fname,s->directory,sizeof(fname)) >= sizeof(fname) || - strlcat(fname,"/hostname",sizeof(fname)) >= sizeof(fname)) { + strlcat(fname,PATH_SEPARATOR"hostname",sizeof(fname)) + >= sizeof(fname)) { log_warn(LD_CONFIG, "Directory name too long to store hostname file:" " \"%s\".", s->directory); return -1; |