--- a/javacommons/utils/src/javainifileutils.cpp Fri Apr 30 10:40:48 2010 +0300
+++ b/javacommons/utils/src/javainifileutils.cpp Tue May 11 16:07:20 2010 +0300
@@ -19,8 +19,8 @@
#include <iostream>
#include <sstream>
#include <vector>
-
#include <string.h>
+#include <cstdio>
#include "logger.h"
#include "javainifileutils.h"
@@ -118,12 +118,12 @@
#endif // RD_JAVA_INI_FILE_ACCESS_IN_USE
-char* JavaIniFileUtils::getPosition(FileContent& content, const std::string& property)
+const char* JavaIniFileUtils::getPosition(FileContent& content, const std::string& property)
{
const char* data = content.getContent();
if (data)
{
- char* position = strstr(data, property.c_str());
+ const char* position = strstr(data, property.c_str());
if (position)
{
position += property.length()+2;