git-svn: trunk@2219
Nigel Horne authored on 2006/08/29 16:41:59... | ... |
@@ -16,7 +16,7 @@ |
16 | 16 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, |
17 | 17 |
* MA 02110-1301, USA. |
18 | 18 |
*/ |
19 |
-static char const rcsid[] = "$Id: message.c,v 1.183 2006/07/31 07:07:40 njh Exp $"; |
|
19 |
+static char const rcsid[] = "$Id: message.c,v 1.184 2006/08/29 07:41:59 njh Exp $"; |
|
20 | 20 |
|
21 | 21 |
#if HAVE_CONFIG_H |
22 | 22 |
#include "clamav-config.h" |
... | ... |
@@ -2414,8 +2414,9 @@ rfc2231(const char *in) |
2414 | 2414 |
* out = &out[ptr - in]; |
2415 | 2415 |
* in = ptr; |
2416 | 2416 |
*/ |
2417 |
- for(out = ret; in != ptr; in++) |
|
2418 |
- *out++ = *in; |
|
2417 |
+ out = ret; |
|
2418 |
+ while(in != ptr) |
|
2419 |
+ *out++ = *in++; |
|
2419 | 2420 |
|
2420 | 2421 |
*out++ = '='; |
2421 | 2422 |
|