summaryrefslogtreecommitdiff
path: root/pith/ical.c
diff options
context:
space:
mode:
Diffstat (limited to 'pith/ical.c')
-rw-r--r--pith/ical.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pith/ical.c b/pith/ical.c
index 5079ceb9..2d61c00e 100644
--- a/pith/ical.c
+++ b/pith/ical.c
@@ -243,7 +243,7 @@ ical_decode(char *text, unsigned short encoding)
t = rfc822_qprint ((unsigned char *) text,strlen(text),&callen);
if(t != NULL){
tlen = strlen(text) + 1;
- strncpy(text, t, tlen);
+ strncpy(text, (char *) t, tlen);
text[tlen - 1] = '\0';
fs_give((void **) &t);
}