Javacym / liblunar

Automatically exported from code.google.com/p/liblunar
1 stars 0 forks source link

snprintf 陷阱 #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
关于 snprintf 陷阱的具体内容请参考:
http://blog.lidaobing.info/2008/12/sprintfsnprintf-ubuntudebian.html

补丁见附件,我对  glib 库不熟,没找到 strcat 
的对应函数,所以直接使用了
strcat。

我没看 glib 库源码,所以不太清楚 glib 的 g_sprintf 是否有此 
bug.

Original issue reported on code.google.com by lidaob...@gmail.com on 28 Dec 2008 at 3:19

Attachments:

GoogleCodeExporter commented 8 years ago
谢谢,这个patch应该帮我们解决了一个长期以来的bug:在一些
系统中无法正确显示出年份。

Original comment by yet...@gmail.com on 29 Dec 2008 at 6:21