Project

General

Profile

Files » 0001-app-fitboot-fix-cmdline-overlay-issue.patch

Lion Wang, 08/06/2021 01:48 PM

View differences:

app/fitboot/fitboot.c
343 343
    mtdnum ++;
344 344
    sprintf(mtdnum_str_new, "%d", mtdnum);
345 345
    if (mtdnum >= 10) {
346
        char half_before[256] = {'\0'};
347
        char half_behind[256] = {'\0'};
346
        char half_before[1024] = {'\0'};
347
        char half_behind[1024] = {'\0'};
348 348
        strncpy(half_before, cmdline_read, pos2 - cmdline_read);
349 349
        char *pos3 = strstr(half_before, str_real);
350 350
        strncpy(pos3 + header_length, mtdnum_str_new, 2);
(1-1/11)