aboot: lib: platform: Fix for banned apis
Use
* snprintf instead of sprintf
* strtok_r instead of strtok
* strlcpy instead of strncpy
Change-Id: Ib48816439f8285f8cb44585dbb13a0cd22607a15
diff --git a/app/aboot/aboot.c b/app/aboot/aboot.c
index ca48092..973e4a2 100644
--- a/app/aboot/aboot.c
+++ b/app/aboot/aboot.c
@@ -2016,12 +2016,13 @@
int index = INVALID_PTN;
char *token = NULL;
char *pname = NULL;
+ char *sp;
uint8_t lun = 0;
bool lun_set = false;
- token = strtok((char *)arg, ":");
+ token = strtok_r((char *)arg, ":", &sp);
pname = token;
- token = strtok(NULL, ":");
+ token = strtok_r(NULL, ":", &sp);
if(token)
{
lun = atoi(token);