diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-02-21 21:57:42 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-02-21 21:57:42 +0000 |
commit | b375472d14cb9165e3acab899e4388a36c03bf25 (patch) | |
tree | ae14920d819371d594d45a7020ea44a593bd44d6 /src/common/log.c | |
parent | 1cd90948ab6b82f65600ed9bae45a201dfae4a3d (diff) | |
download | tor-b375472d14cb9165e3acab899e4388a36c03bf25.tar.gz tor-b375472d14cb9165e3acab899e4388a36c03bf25.zip |
r14373@tombo: nickm | 2008-02-21 16:29:18 -0500
Apply warnings about implicit 64-to-32 conversions; some from Sebastian Hahn; some not.
svn:r13664
Diffstat (limited to 'src/common/log.c')
-rw-r--r-- | src/common/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/log.c b/src/common/log.c index 54256bdbc6..6dfed6ca77 100644 --- a/src/common/log.c +++ b/src/common/log.c @@ -225,7 +225,7 @@ format_msg(char *buf, size_t buf_len, /* The message was too long; overwrite the end of the buffer with * "[...truncated]" */ if (buf_len >= TRUNCATED_STR_LEN) { - int offset = buf_len-TRUNCATED_STR_LEN; + size_t offset = buf_len-TRUNCATED_STR_LEN; /* We have an extra 2 characters after buf_len to hold the \n\0, * so it's safe to add 1 to the size here. */ strlcpy(buf+offset, TRUNCATED_STR, buf_len-offset+1); |