projects
/
infodrom
/
newmail
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
371a2d2
)
Copy enough characters up to the encoding
author
Joey Schulze
<joey@infodrom.org>
Mon, 21 Apr 2008 16:02:01 +0000
(16:02 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 21 Apr 2008 16:02:01 +0000
(16:02 +0000)
rfc2047.c
patch
|
blob
|
history
diff --git
a/rfc2047.c
b/rfc2047.c
index
4afd04a
..
0c72863
100644
(file)
--- a/
rfc2047.c
+++ b/
rfc2047.c
@@
-137,8
+137,8
@@
char *convert_header(char *buf)
while ((encstart = strstr (inp, "=?"))) {
if (encstart != inp) {
- memcpy (outp, inp, encstart-inp
-1
);
- outp += encstart-inp
-1
;
+ memcpy (outp, inp, encstart-inp);
+ outp += encstart-inp;
}
charset = encstart+2;