Open phodina opened 2 years ago
Checked on Ubuntu 22.04 fix work correctly.
Haha, same issue, different method (https://github.com/rockchip-linux/rkdeveloptool/pull/63)
@sprhawk you're fix seem from the technical stand point of view more correct. But both accomplish the same :-)
Though I'm not sure what's the standpoint on #pragma
and if it's also possible solution for other compilers e.g. LLVM
edit: but looks unsage, see #57.
There are 5 patches here now all trying to fix this... :sweat_smile:
Doesn't matter which one just it gets fixed :-)
Hi,
I'm trying to build the project but there seems to be error
You seem to rely on implicit truncation instead of explicitly truncating the string. This patch fixes the issue with GCC. It's not nice but working with strings in C is a mess.