#define MF_LABEL_CONNECT_TO_WIFI_CONTENT "IDS_MF_POP_YOU_NEED_TO_BE_CONNECTED_TO_A_WI_FI_NETWORK_TO_SCAN_FOR_NEARBY_DEVICES_CONNECT_VIA_WI_FI_AND_TRY_AGAIN"
#define MF_LABEL_NO_RESULT_FOUND "IDS_ST_BODY_NO_RESULTS_FOUND"
#define MF_LABEL_REMOVE_SHORTCUT "IDS_HS_HEADER_REMOVE_SHORTCUT_ABB"
-#define MF_LABEL_RENAME_SHORTCUT "Rename shortcut"
+#define MF_LABEL_RENAME_SHORTCUT "IDS_MF_OPT_RENAME_SHORTCUT_ABB"
#define MF_LABEL_NONE "IDS_COM_BODY_NONE"
#define MF_LABEL_MOVE_TO_PRIVATE "IDS_GALLERY_OPT_MOVE_TO_PRIVATE"
#define MF_LABEL_REMOVE_FROM_PRIVATE "IDS_GALLERY_OPT_REMOVE_FROM_PRIVATE"
#define MF_LABEL_ALL_FILES "IDS_MF_HEADER_ALL_FILES"
#define MF_LABEL_DOWNLOADED_APP "Downloaded app"
#define MF_LABEL_DOWNLOADED_APP_ENTER "IDS_MF_HEADER_DOWNLOAD_HISTORY_ABB"
-#define MF_LABEL_DELETE_SHORTCUT "Delete shortcut"
+#define MF_LABEL_DELETE_SHORTCUT "IDS_MF_OPT_DELETE_SHORTCUT_ABB"
#define MF_LABEL_DELETE_THIS_SHORTCUT "This shortcut will be deleted."
#define MF_LABEL_DELETE_SHORTCUTS_Q "%d shortcuts will be deleted."
#define MF_LABEL_DELETE_THIS_RECENT "IDS_DM_POP_THIS_ITEM_WILL_BE_DELETED_ABB"
}
if (mf_is_dir(ap->mf_FileOperation.to_rename->str)) {
- if (strncmp(name, ".", strlen(".")) == 0 || strncmp(name, "..", strlen("..")) == 0) {
+ if ((strncmp(name, ".", strlen(".")) == 0 && strlen(name) == strlen(".") )
+ || (strncmp(name, "..", strlen("..")) == 0 && strlen(name) == strlen(".."))) {
message = MF_MSG_SET_NAME_DOT;
SAFE_FREE_CHAR(strstrip_name);
SAFE_FREE_CHAR(pName);
mf_debug("Name contains illegal character!!!");
goto ERROR_WARNING_EXIT;
}
- if (strncmp(test_space, ".", strlen(".")) == 0 || strncmp(test_space, "..", strlen("..")) == 0) {
+ if ((strncmp(test_space, ".", strlen(".")) == 0 && strlen(test_space) == strlen(".") ) ||
+ (strncmp(test_space, "..", strlen("..")) == 0) && strlen(test_space) == strlen("..")) {
message = MF_MSG_SET_NAME_DOT;
SAFE_FREE_CHAR(name);
SAFE_FREE_CHAR(fullpath);