aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-03-25 14:31:55 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-03-25 17:16:06 -0400
commit8d84cfc43d355638ad5e4cbd42b7b382316bb36c (patch)
tree4ca0900f384a01f168643e7cfe9193239e4c6408
parent838c0214aa658a93981fb3dcff04c1b9d25983f7 (diff)
downloadspmc-8d84cfc43d355638ad5e4cbd42b7b382316bb36c.tar.gz
Bugfix: Replace char &reference with const char[] string.
-rw-r--r--lib/manifest.c4
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);