Fixed svace defects
[platform/core/location/maps-plugin-mapquest.git] / src / mapquest / mapquest_revgeocode.c
index 246bee6..146ff23 100644 (file)
@@ -23,6 +23,7 @@
 #include "mapquest_debug.h"
 #include "mapquest_queue.h"
 #include "mapquest_restcurl.h"
+#include "mapquest_util.h"
 
 #define REVERSE_GEOCODE_URL    "https://open.mapquestapi.com/geocoding/v1/reverse?key=%s&outFormat=json"
 
@@ -36,10 +37,10 @@ int query_revgeocode(gchar *maps_key, gdouble latitude, gdouble longitude, gpoin
        else
                snprintf(tmpStr, sizeof(tmpStr), REVERSE_GEOCODE_URL, "null");
 
-       strcpy(url, tmpStr);
+       STRCPY(url, tmpStr);
 
        snprintf(tmpStr, sizeof(tmpStr), "&location=%f,%f", latitude, longitude);
-       strcat(url, tmpStr);
+       STRCAT(url, tmpStr);
 
        add_handle(url, REQ_TYPE_REVGEOCODE, user_data);