Fix app manager parse applet name issue (#280)
This commit is contained in:
@ -216,7 +216,7 @@ int aee_host_msg_callback(void *msg, uint16_t msg_len)
|
||||
|
||||
am_dispatch_request(&request);
|
||||
} else {
|
||||
printf("unexpected host msg type: %d\n", msg_type);
|
||||
app_manager_printf("unexpected host msg type: %d\n", msg_type);
|
||||
}
|
||||
|
||||
APP_MGR_FREE(recv_ctx.message.payload);
|
||||
|
||||
@ -71,7 +71,7 @@ void targeted_app_request_handler(request_t *request, void *unused)
|
||||
}
|
||||
|
||||
strncpy(applet_name, request->url + offset, sizeof(applet_name) - 1);
|
||||
char *p = strrchr(applet_name, '/');
|
||||
char *p = strchr(applet_name, '/');
|
||||
if (p) {
|
||||
*p = 0;
|
||||
} else
|
||||
|
||||
Reference in New Issue
Block a user