[USETUP] Use RtlStringCbPrintfA instead of sprintf
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sun, 28 Apr 2019 19:03:35 +0000 (21:03 +0200)
committerHervé Poussineau <hpoussin@reactos.org>
Mon, 27 May 2019 11:22:40 +0000 (13:22 +0200)
commit6129fbaf1eb936bff9ef49c5a28b854b62dc96d1
treefdbd261ab333e1401a33cd64301a75a48612be49
parentead2156a29d507c8c942f637f1210bc68568556a
[USETUP] Use RtlStringCbPrintfA instead of sprintf

Fixes GCC 8 warning:
base/setup/usetup/usetup.c:3407:78: error: '%S' directive writing up to 521 bytes into a region of size 200 [-Werror=format-overflow=]
                 "Setup is currently unable to check a partition formatted in %S.\n"
                                                                              ^~
base/setup/usetup/usetup.c:3406:9: note: 'sprintf' output between 128 and 649 bytes into a destination of size 260
         sprintf(Buffer,
         ^~~~~~~~~~~~~~~
                 "Setup is currently unable to check a partition formatted in %S.\n"
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 "\n"
                 ~~~~
                 "  \x07  Press ENTER to continue Setup.\n"
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 "  \x07  Press F3 to quit Setup.",
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                 PartEntry->FileSystem);
                 ~~~~~~~~~~~~~~~~~~~~~~
base/setup/usetup/usetup.c