Permalink
Browse files

strdup accepts char *, not unsigned char *

  • Loading branch information...
1 parent 2fd327a commit 92b84614d106ffc2edad98a5691d9e20222bb4e7 @dottedmag committed Aug 5, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 chm/extra.c
View
@@ -342,7 +342,7 @@ pychm_process_wlc (struct chmFile *chmfile,
} else {
combuf[COMMON_BUF_LEN - 1] = 0;
- topic = strdup (combuf);
+ topic = strdup ((char *)combuf);
}
urloff = get_uint32 (entry + 8);
@@ -366,7 +366,7 @@ pychm_process_wlc (struct chmFile *chmfile,
combuf[COMMON_BUF_LEN - 1] = 0;
FREE (url);
- url = strdup (combuf);
+ url = strdup ((char *)combuf);
if (url && topic) {
#ifdef __PYTHON__

0 comments on commit 92b8461

Please sign in to comment.