diff options
author | David Laing <david.laing@nokia.com> | 2011-02-22 15:32:43 +1000 |
---|---|---|
committer | David Laing <david.laing@nokia.com> | 2011-02-22 15:35:17 +1000 |
commit | ea1bcd4384c1033e5ca2800cf6b7262f2c0bd98c (patch) | |
tree | 2c8f8821a3ebd62b1b77bd7e56236d293c360fc6 /plugins/geoservices | |
parent | 42ecb1a163fa806484ba72f9c7bd651511f45482 (diff) |
Fixes the positioning and maps parts of the Location Coverity defects.
The Proj4 code has a significant number of defects associated with it.
At some point we'll need to decide if we should fix them upstream
or maintain a patchset.
Diffstat (limited to 'plugins/geoservices')
-rw-r--r-- | plugins/geoservices/nokia/qgeosearchmanagerengine_nokia.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/geoservices/nokia/qgeosearchmanagerengine_nokia.cpp b/plugins/geoservices/nokia/qgeosearchmanagerengine_nokia.cpp index 2f0a656b34..a02d1ee46b 100644 --- a/plugins/geoservices/nokia/qgeosearchmanagerengine_nokia.cpp +++ b/plugins/geoservices/nokia/qgeosearchmanagerengine_nokia.cpp @@ -292,7 +292,7 @@ void QGeoSearchManagerEngineNokia::placesError(QGeoSearchReply::Error error, con QString QGeoSearchManagerEngineNokia::languageToMarc(QLocale::Language language) { uint offset = 3 * (uint(language)); - if (language == QLocale::C || offset + 2 > sizeof(marc_language_code_list)) + if (language == QLocale::C || offset + 3 > sizeof(marc_language_code_list)) return QLatin1String("eng"); const unsigned char *c = marc_language_code_list + offset; |