On Friday, July 16, 2010, Peter Wehrfritz <peter.wehrfr...@web.de> wrote: > Enlightenment SVN schrieb: >> Modified: trunk/TMP/st/elementary/src/lib/elm_main.c >> =================================================================== >> --- trunk/TMP/st/elementary/src/lib/elm_main.c 2010-07-16 06:21:25 >> UTC (rev 50276) >> +++ trunk/TMP/st/elementary/src/lib/elm_main.c 2010-07-16 06:38:59 >> UTC (rev 50277) >> @@ -22,6 +22,32 @@ >> static Elm_Version _version = { VMAJ, VMIN, VMIC, VREV }; >> EAPI Elm_Version *elm_version = &_version; >> >> +Eina_Bool >> +_elm_dangerous_call_check(const char *call) >> +{ >> + char buf[256]; >> + const char *eval; >> + >> + snprintf(buf, "%i.%i.%i.%i", VMAJ, VMIN, VMIC, VREV); > > Shouldn't the second argument be the buffer size, e.g. sizeof(buf)? Or > am I missing something?
Yes, this is wrong. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: barbi...@gmail.com Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel