rkdeveloptool
                                
                                 rkdeveloptool copied to clipboard
                                
                                    rkdeveloptool copied to clipboard
                            
                            
                            
                        Change sprintf to snprintf
I found sprintf is deprecated now. So i can not build on some devices. I fixed it by changing sprintf to snprintf. It work fine!
main.cpp:90:3: error: 'sprintf' is deprecated: This function is provided for compatibility reasons only.  Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead. [-Werror,-Wdeprecated-declarations]
                sprintf(szText, "Tag Bad Block total %lld, current %lld", totalValue, currentValue);
Tested on Linux and MacOS
Thanks so much - this saved me!
@rockchip-linux this fixes builds.
thank you so much - I would have been stuck without this
@keveryang @Caesar-github please merge this important PR