Minor change.
* mailbox/rfc2047.c: Minor style fix.
Showing
1 changed file
with
7 additions
and
7 deletions
... | @@ -192,18 +192,18 @@ mu_rfc2047_decode (const char *tocode, const char *input, char **ptostr) | ... | @@ -192,18 +192,18 @@ mu_rfc2047_decode (const char *tocode, const char *input, char **ptostr) |
192 | { | 192 | { |
193 | if (--run_count) | 193 | if (--run_count) |
194 | { | 194 | { |
195 | CHKBUF(run_count); | 195 | CHKBUF (run_count); |
196 | memcpy (buffer + bufpos, fromstr - run_count, run_count); | 196 | memcpy (buffer + bufpos, fromstr - run_count, run_count); |
197 | bufpos += run_count; | 197 | bufpos += run_count; |
198 | run_count = 0; | 198 | run_count = 0; |
199 | } | 199 | } |
200 | CHKBUF(1); | 200 | CHKBUF (1); |
201 | buffer[bufpos++] = *fromstr++; | 201 | buffer[bufpos++] = *fromstr++; |
202 | } | 202 | } |
203 | } | 203 | } |
204 | else | 204 | else |
205 | { | 205 | { |
206 | CHKBUF(1); | 206 | CHKBUF (1); |
207 | buffer[bufpos++] = *fromstr++; | 207 | buffer[bufpos++] = *fromstr++; |
208 | } | 208 | } |
209 | } | 209 | } |
... | @@ -211,12 +211,12 @@ mu_rfc2047_decode (const char *tocode, const char *input, char **ptostr) | ... | @@ -211,12 +211,12 @@ mu_rfc2047_decode (const char *tocode, const char *input, char **ptostr) |
211 | if (*fromstr) | 211 | if (*fromstr) |
212 | { | 212 | { |
213 | size_t len = strlen (fromstr); | 213 | size_t len = strlen (fromstr); |
214 | CHKBUF(len); | 214 | CHKBUF (len); |
215 | memcpy (buffer + bufpos, fromstr, strlen (fromstr)); | 215 | memcpy (buffer + bufpos, fromstr, len); |
216 | bufpos += strlen (fromstr); | 216 | bufpos += len; |
217 | } | 217 | } |
218 | 218 | ||
219 | CHKBUF(1); | 219 | CHKBUF (1); |
220 | buffer[bufpos++] = 0; | 220 | buffer[bufpos++] = 0; |
221 | 221 | ||
222 | free (fromcode); | 222 | free (fromcode); | ... | ... |
-
Please register or sign in to post a comment