projects
/
infodrom
/
newmail
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fb18aea
)
Correction by Marian ??urkovi??
author
Joey Schulze
<joey@infodrom.org>
Mon, 21 Apr 2008 13:27:51 +0000
(13:27 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 21 Apr 2008 13:27:51 +0000
(13:27 +0000)
charset.c
patch
|
blob
|
history
diff --git
a/charset.c
b/charset.c
index
a608829
..
7ebca96
100644
(file)
--- a/
charset.c
+++ b/
charset.c
@@
-1,5
+1,5
@@
/*
/*
- Copyright (c) 2006 Joey Schulze <joey@infodrom.org>
+ Copyright (c) 2006
,8
Joey Schulze <joey@infodrom.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-48,7
+48,7
@@
char *convert_word(const char *encoding, char *inbuf, char *outbuf, size_t outby
size_t outsize;
if (!charset || !strcasecmp (encoding, charset)) {
size_t outsize;
if (!charset || !strcasecmp (encoding, charset)) {
- memmove (outbuf, inbuf, strlen(inbuf)<outbytesleft?strlen(inbuf)+1:
strlen(inbuf)
);
+ memmove (outbuf, inbuf, strlen(inbuf)<outbytesleft?strlen(inbuf)+1:
outbytesleft
);
outbuf[outbytesleft-1] = '\0';
return outbuf;
}
outbuf[outbytesleft-1] = '\0';
return outbuf;
}