wjaguar / mtPaint

Mark Tyler's Painting Program
http://mtpaint.sourceforge.net
GNU General Public License v3.0
157 stars 29 forks source link

fix some unsafe strncpy calls #58

Closed 12Me21 closed 4 months ago

12Me21 commented 3 years ago

This fixes several compiler warnings about strncpy by replacing it with strncpy0. Also, the strncpy0 macro (except for the return value which is never used) was equivalent to strlcpy (which is included in gtk as g_strlcpy), so I replaced it with that.

wjaguar commented 4 months ago

The root problem fixed in 3.50.10