diff options
-rw-r--r-- | firmware/logf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/logf.c b/firmware/logf.c index 02ab79d0a0..00fbfdc4b7 100644 --- a/firmware/logf.c +++ b/firmware/logf.c | |||
@@ -155,7 +155,7 @@ void _logf(const char *format, ...) | |||
155 | } | 155 | } |
156 | 156 | ||
157 | ptr = logfbuffer[logfindex]; | 157 | ptr = logfbuffer[logfindex]; |
158 | memcpy(ptr, buf + tlen,len-tlen); | 158 | memcpy(ptr, buf + tlen,len); |
159 | 159 | ||
160 | if(len < MAX_LOGF_ENTRY) | 160 | if(len < MAX_LOGF_ENTRY) |
161 | /* pad with spaces up to the MAX_LOGF_ENTRY byte border */ | 161 | /* pad with spaces up to the MAX_LOGF_ENTRY byte border */ |