summaryrefslogtreecommitdiff
path: root/vdagent
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2014-12-29 17:46:28 +0200
committerUri Lublin <uril@redhat.com>2014-12-30 17:42:17 +0200
commitd1c8d152f4c710384be27f7d346b653a9a31ed24 (patch)
tree4e61e1e900d989054e33569866136a2eab1e7ec7 /vdagent
parente04ffbc6080b07ca6edcab06c539a90496c78805 (diff)
g_key_get_string: use size_t for pointer difference
The 64 bit Visual Studio build complains that: .\file_xfer.cpp(223) : warning C4244: '=' : conversion from '__int64' to 'unsigned int', possible loss of data
Diffstat (limited to 'vdagent')
-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 3aad4ac..8d7c86c 100644
--- a/vdagent/file_xfer.cpp
+++ b/vdagent/file_xfer.cpp
@@ -205,7 +205,7 @@ bool FileXfer::g_key_get_string(char* data, const char* group, const char* key,
{
char group_pfx[G_KEY_MAX_LEN], key_pfx[G_KEY_MAX_LEN];
char *group_pos, *key_pos, *next_group_pos, *start, *end;
- unsigned len;
+ size_t len;
snprintf(group_pfx, sizeof(group_pfx), "[%s]", group);
if (!(group_pos = strstr((char*)data, group_pfx))) return false;