diff --git a/swad_changelog.h b/swad_changelog.h index b666a050..343fa485 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -355,10 +355,11 @@ En OpenSWAD: ps2pdf source.ps destination.pdf */ -#define Log_PLATFORM_VERSION "SWAD 18.6.2 (2018-10-17)" +#define Log_PLATFORM_VERSION "SWAD 18.6.3 (2018-10-17)" #define CSS_FILE "swad18.4.css" #define JS_FILE "swad17.17.1.js" /* + Version 18.6.3: Oct 17, 2018 Some sprintf changed by snprintf or asprintf. (235954 lines) Version 18.6.2: Oct 17, 2018 Some sprintf changed by snprintf. (235808 lines) Version 18.6.1: Oct 16, 2018 Some sprintf changed by snprintf. (235755 lines) Version 18.6: Oct 16, 2018 sprintf changed by snprintf in alerts. (235730 lines) diff --git a/swad_chat.c b/swad_chat.c index ccb96014..ac55b654 100644 --- a/swad_chat.c +++ b/swad_chat.c @@ -144,7 +144,9 @@ void Cht_ShowListOfAvailableChatRooms (void) /***** Link to chat available for all the users *****/ IsLastItemInLevel[1] = (!Gbl.Usrs.Me.IBelongToCurrentCrs && !Gbl.Usrs.Me.MyDegs.Num); - sprintf (ThisRoomFullName,"%s (%s)",Txt_General,Txt_SEX_PLURAL_abc[Usr_SEX_ALL]); + snprintf (ThisRoomFullName,sizeof (ThisRoomFullName), + "%s (%s)", + Txt_General,Txt_SEX_PLURAL_abc[Usr_SEX_ALL]); Cht_WriteLinkToChat1 ("GBL_USR",Txt_SEX_PLURAL_Abc[Usr_SEX_ALL],ThisRoomFullName,1,IsLastItemInLevel); fprintf (Gbl.F.Out,"\"%s\"", - Txt_Connected_users); + snprintf (Gbl.Title,sizeof (Gbl.Title), + "%s" + "
", + Txt_Connected_users); Box_StartBox (NULL,Gbl.Title,Con_PutIconToUpdateConnected, Hlp_USERS_Connected,Box_NOT_CLOSABLE); fprintf (Gbl.F.Out,"