mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-06-17 22:32:43 +00:00
Merge remote-tracking branch 'Ilos/patch-1'
This commit is contained in:
+1
-1
@@ -208,7 +208,7 @@ bool config_file_parse(char* filename, PCONFIGURATION config) {
|
|||||||
|
|
||||||
while (getline(&line, &len, fd) != -1) {
|
while (getline(&line, &len, fd) != -1) {
|
||||||
char *key = NULL, *value = NULL;
|
char *key = NULL, *value = NULL;
|
||||||
if (sscanf(line, "%ms = %ms", &key, &value) == 2) {
|
if (sscanf(line, "%ms = %m[^\n]", &key, &value) == 2) {
|
||||||
if (strcmp(key, "address") == 0) {
|
if (strcmp(key, "address") == 0) {
|
||||||
config->address = value;
|
config->address = value;
|
||||||
} else if (strcmp(key, "sops") == 0) {
|
} else if (strcmp(key, "sops") == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user