[fix] print_row() buffer overflow
commit205dde4cf3acaf708c93f5ad25f59144877e940b
authorafify <hassan@afify.dev>
Tue, 30 Mar 2021 20:15:33 +0000 (30 23:15 +0300)
committerafify <hassan@afify.dev>
Tue, 30 Mar 2021 20:15:33 +0000 (30 23:15 +0300)
treeae2c8257a2e0205c4af74361948496bf3978d761
parentf26739f4f1c8ccf77d84fb2f57520b63d06e7472
[fix] print_row() buffer overflow

problem: wrong usage of strncpy & strncat can cause buffer overflow.
solution: use snprintf() and limit result with MAX_N.
sfm.c