diff options
Diffstat (limited to 'daemon/Collector.cpp')
-rw-r--r-- | daemon/Collector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/Collector.cpp b/daemon/Collector.cpp index db7b9c0..d29cd16 100644 --- a/daemon/Collector.cpp +++ b/daemon/Collector.cpp @@ -237,7 +237,7 @@ void Collector::getCoreName() { "The core name in the captured xml file will be 'unknown'."); return; } - strncpy(gSessionData->mCoreName, (char*)((int)position + 2), sizeof(gSessionData->mCoreName)); + strncpy(gSessionData->mCoreName, (char*)((long)position + 2), sizeof(gSessionData->mCoreName)); gSessionData->mCoreName[sizeof(gSessionData->mCoreName) - 1] = 0; // strncpy does not guarantee a null-terminated string fclose(f); return; |