Re:New graphics engine imperils users of Firefox and Chrome
by prewett on Wednesday May 11, 2011 @10:10AM
(#2536486)
GL_ARB_robustness? I thought this might be satire or something, but it actually exists:
Apparently it does the same thing for OpenGL that strncpy does for strcpy.
[ Parent
| on HN ]
Re:New graphics engine imperils users of Firefox and Chrome
by palish on Wednesday May 11, 2011 @01:08PM
(#2537230)
You mean strcpy_s?
Re:New graphics engine imperils users of Firefox and Chrome
by owenmarshall on Wednesday May 11, 2011 @01:25PM
(#2537291)
OpenBSD po-ta-to, Windows po-tah-to.
Re:New graphics engine imperils users of Firefox and Chrome
by palish on Wednesday May 11, 2011 @01:29PM
(#2537312)
It was tongue-in-cheek. I think it's silly that Microsoft adds "_s" to a lot of the standard functions; it makes porting more difficult.
Of course, it was sillier not to write "strcpy" as strcpy(dest,maxSize,src) from the beginning. And "memcpy" as memcpy(dest,maxSize,count,src). But I guess whoever wrote those weren't really expecting them to be one of the most frequently used functions in computer programming history...