summaryrefslogtreecommitdiff
path: root/vdagent/file_xfer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vdagent/file_xfer.cpp')
-rw-r--r--vdagent/file_xfer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdagent/file_xfer.cpp b/vdagent/file_xfer.cpp
index 9eec5cc..208303f 100644
--- a/vdagent/file_xfer.cpp
+++ b/vdagent/file_xfer.cpp
@@ -206,7 +206,7 @@ bool FileXfer::g_key_get_string(char* data, const char* group, const char* key,
snprintf(key_pfx, sizeof(key_pfx), "\n%s=", key);
if (!(key_pos = strstr(group_pos, key_pfx))) return false;
- next_group_pos = strstr(group_pos + strlen(group_pfx), "[");
+ next_group_pos = strstr(group_pos + strlen(group_pfx), "\n[");
if (next_group_pos && key_pos > next_group_pos) return false;
start = key_pos + strlen(key_pfx);