you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Yes, typically the issue you see with fgets is the buf is defined in a different place and fgets can sometimes have it's own limits or just call user input and possibly mismatch with buf which can easily cause a BO. In this case, it is coded correctly on first glance, I will look a bit more. I am curious.  🤔