[Bug 305901] Re: Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch

Anders Kaseorg anders at kaseorg.com
Sun Dec 7 21:04:07 GMT 2008


For snprintf, use

pcregrep -M 'snprintf\s*\(\s*([^,]*)\s*,[^,]*,\s*"%s[^"]*"\s*,\s*\1\s*,'
"$@"

-- 
Intrepid gcc -O2 breaks string appending with sprintf(), due to fortify source patch
https://bugs.launchpad.net/bugs/305901
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nagios-plugins in ubuntu.



More information about the Ubuntu-server-bugs mailing list