From c95fe7dc36062decf02818cbc34091b8b239e774 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 17 Oct 2018 10:32:18 +0200 Subject: [PATCH] Version 18.6.3 --- swad_changelog.h | 3 +- swad_chat.c | 93 +++++++++++++++++++++++++++------------ swad_config.h | 4 +- swad_connected.c | 6 ++- swad_convert_briefcases.c | 36 ++++++++------- swad_convert_photos.c | 53 +++++++++++++--------- swad_convert_works.c | 42 +++++++++++++----- swad_country.c | 85 +++++++++++++++++++++++------------ swad_course.c | 62 +++++++++++++++++--------- swad_cryptography.c | 5 ++- swad_database.c | 7 +-- swad_date.c | 53 ++++++++++++---------- swad_degree.c | 38 ++++++++++------ swad_enrolment.c | 11 +++-- 14 files changed, 322 insertions(+), 176 deletions(-) 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,"