id summary reporter owner description type status priority milestone component version resolution keywords cc blockedby blocking platform 14320 Accelerants: Fix -Wformat-overflow mt nobody "https://review.haiku-os.org/#/c/haiku/+/429/ Use strlcpy() and strlcat() instead of sprintf() in mga and nv accelerants, since gcc8 warns -Werror=format-overflow= to sprintf() like below. {{{ /home/haiku/haiku/haiku/src/add-ons/accelerants/matrox/engine/mga_crtc.c:299:19: error: 'display off, ' directive writing 13 bytes into a region of size between 1 and 100 [-Werror=format-overflow=] sprintf(msg, ""%sdisplay off, "", msg); ^~~~~~~~~~~~~ /home/haiku/haiku/haiku/src/add-ons/accelerants/matrox/engine/mga_crtc.c:299:3: note: 'sprintf' output between 14 and 113 bytes into a destination of size 100 sprintf(msg, ""%sdisplay off, "", msg); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ }}} " bug closed normal Unscheduled Drivers/Graphics R1/Development fixed All