diff options
-rw-r--r-- | lib/manifest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/manifest.c b/lib/manifest.c index 239ec69..08aafbf 100644 --- a/lib/manifest.c +++ b/lib/manifest.c @@ -462,7 +462,7 @@ Manifest *manifest_read(char *file_or_url) { } // Begin parsing the manifest - char separator = SPM_MANIFEST_SEPARATOR; + const char separator[] = {SPM_MANIFEST_SEPARATOR, '\0'}; size_t i = 0; // Consume header @@ -475,7 +475,7 @@ Manifest *manifest_read(char *file_or_url) { while (fgets(dptr, BUFSIZ, fp) != NULL) { dptr = strip(dptr); char *garbage; - char **parts = split(dptr, &separator); + char **parts = split(dptr, separator); char *_origin = NULL; if (file_or_url != NULL) { _origin = strdup(file_or_url); |