diff --git a/swad_ID.c b/swad_ID.c
index 3b64f397..1a83e994 100644
--- a/swad_ID.c
+++ b/swad_ID.c
@@ -205,27 +205,33 @@ unsigned ID_GetListUsrCodsFromUsrID (struct UsrData *UsrDat,
NumID++)
{
if (NumID)
- Str_Concat (Query,",",MaxLength);
+ Str_Concat (Query,",",
+ MaxLength);
sprintf (SubQuery,"'%s'",UsrDat->IDs.List[NumID].ID);
- Str_Concat (Query,SubQuery,MaxLength);
+ Str_Concat (Query,SubQuery,
+ MaxLength);
}
- Str_Concat (Query,")",MaxLength);
+ Str_Concat (Query,")",
+ MaxLength);
if (CheckPassword)
{
if (OnlyConfirmedIDs)
- Str_Concat (Query," AND usr_IDs.Confirmed='Y'",MaxLength);
+ Str_Concat (Query," AND usr_IDs.Confirmed='Y'",
+ MaxLength);
// Get user's code if I have written the correct password
// or if password in database is empty (new user)
sprintf (SubQuery," AND usr_IDs.UsrCod=usr_data.UsrCod"
" AND (usr_data.Password='%s' OR usr_data.Password='')",
EncryptedPassword);
- Str_Concat (Query,SubQuery,MaxLength);
+ Str_Concat (Query,SubQuery,
+ MaxLength);
}
else if (OnlyConfirmedIDs)
- Str_Concat (Query," AND Confirmed='Y'",MaxLength);
+ Str_Concat (Query," AND Confirmed='Y'",
+ MaxLength);
ListUsrCods->NumUsrs = (unsigned) DB_QuerySELECT (Query,&mysql_res,"can not get user's codes");
diff --git a/swad_assignment.c b/swad_assignment.c
index 063cf241..c062051e 100644
--- a/swad_assignment.c
+++ b/swad_assignment.c
@@ -458,8 +458,10 @@ static void Asg_WriteAsgAuthor (struct Assignment *Asg)
Usr_MAX_BYTES_SURNAMES);
if (UsrDat.Surname2[0])
{
- Str_Concat (Surnames," ",Usr_MAX_BYTES_SURNAMES);
- Str_Concat (Surnames,UsrDat.Surname2,Usr_MAX_BYTES_SURNAMES);
+ Str_Concat (Surnames," ",
+ Usr_MAX_BYTES_SURNAMES);
+ Str_Concat (Surnames,UsrDat.Surname2,
+ Usr_MAX_BYTES_SURNAMES);
}
Str_LimitLengthHTMLStr (FirstName,8);
Str_LimitLengthHTMLStr (Surnames,8);
diff --git a/swad_attendance.c b/swad_attendance.c
index 006fb715..b6ad02db 100644
--- a/swad_attendance.c
+++ b/swad_attendance.c
@@ -500,8 +500,10 @@ static void Att_WriteAttEventAuthor (struct AttendanceEvent *Att)
Usr_MAX_BYTES_SURNAMES);
if (UsrDat.Surname2[0])
{
- Str_Concat (Surnames," ",Usr_MAX_BYTES_SURNAMES);
- Str_Concat (Surnames,UsrDat.Surname2,Usr_MAX_BYTES_SURNAMES);
+ Str_Concat (Surnames," ",
+ Usr_MAX_BYTES_SURNAMES);
+ Str_Concat (Surnames,UsrDat.Surname2,
+ Usr_MAX_BYTES_SURNAMES);
}
Str_LimitLengthHTMLStr (FirstName,8);
Str_LimitLengthHTMLStr (Surnames,8);
@@ -2432,9 +2434,11 @@ static unsigned Att_GetNumStdsFromAListWhoAreInAttEvent (long AttCod,long LstSel
NumStd ? ",%ld" :
"%ld",
LstSelectedUsrCods[NumStd]);
- Str_Concat (Query,SubQuery,MaxLength);
+ Str_Concat (Query,SubQuery,
+ MaxLength);
}
- Str_Concat (Query,") AND Present='Y'",MaxLength);
+ Str_Concat (Query,") AND Present='Y'",
+ MaxLength);
NumStdsInAttEvent = (unsigned) DB_QueryCOUNT (Query,"can not get number of students from a list who are registered in an event");
diff --git a/swad_changelog.h b/swad_changelog.h
index ebf218a3..02ea084a 100644
--- a/swad_changelog.h
+++ b/swad_changelog.h
@@ -191,13 +191,14 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
-#define Log_PLATFORM_VERSION "SWAD 16.118 (2017-01-16)"
+#define Log_PLATFORM_VERSION "SWAD 16.118.1 (2017-01-16)"
#define CSS_FILE "swad16.111.5.css"
#define JS_FILE "swad16.114.js"
// Number of lines (includes comments but not blank lines) has been got with the following command:
// nl swad*.c swad*.h css/swad*.css py/swad*.py js/swad*.js soap/swad*?.h sql/swad*.sql | tail -1
/*
+ Version 16.118.1: Jan 17, 2017 Code refactoring related to string concatenation. (211850 lines)
Version 16.118: Jan 17, 2017 Code refactoring related to string copy. (211676 lines)
Version 16.117.1: Jan 16, 2017 Code refactoring related to string concatenation. (211229 lines)
Version 16.117: Jan 16, 2017 Code refactoring related to string concatenation. (211244 lines)
diff --git a/swad_chat.c b/swad_chat.c
index d619dfe3..bd694a3f 100644
--- a/swad_chat.c
+++ b/swad_chat.c
@@ -423,11 +423,15 @@ void Cht_OpenChatWindow (void)
Usr_MAX_BYTES_FULL_NAME);
if (Gbl.Usrs.Me.UsrDat.Surname2[0])
{
- Str_Concat (UsrName," ",Usr_MAX_BYTES_FULL_NAME);
- Str_Concat (UsrName,Gbl.Usrs.Me.UsrDat.Surname2,Usr_MAX_BYTES_FULL_NAME);
+ Str_Concat (UsrName," ",
+ Usr_MAX_BYTES_FULL_NAME);
+ Str_Concat (UsrName,Gbl.Usrs.Me.UsrDat.Surname2,
+ Usr_MAX_BYTES_FULL_NAME);
}
- Str_Concat (UsrName,", ",Usr_MAX_BYTES_FULL_NAME);
- Str_Concat (UsrName,Gbl.Usrs.Me.UsrDat.FirstName,Usr_MAX_BYTES_FULL_NAME);
+ Str_Concat (UsrName,", ",
+ Usr_MAX_BYTES_FULL_NAME);
+ Str_Concat (UsrName,Gbl.Usrs.Me.UsrDat.FirstName,
+ Usr_MAX_BYTES_FULL_NAME);
/***** Build the lists of available rooms *****/
sprintf (ListRoomCodes,"#%s",RoomCode);
@@ -438,40 +442,49 @@ void Cht_OpenChatWindow (void)
if (strcmp (RoomCode,"GBL_USR"))
{
- Str_Concat (ListRoomCodes,"|#GBL_USR",sizeof (ListRoomCodes) - 1);
+ Str_Concat (ListRoomCodes,"|#GBL_USR",
+ Cht_MAX_LENGTH_ROOM_CODES);
sprintf (RoomShortName,"|%s",Txt_SEX_PLURAL_Abc[Usr_SEX_ALL]);
- Str_Concat (ListRoomShortNames,RoomShortName,sizeof (ListRoomShortNames) - 1);
+ Str_Concat (ListRoomShortNames,RoomShortName,
+ Cht_MAX_LENGTH_ROOM_SHRT_NAMES);
sprintf (RoomFullName,"|%s (%s)",
Txt_General,Txt_SEX_PLURAL_abc[Usr_SEX_ALL]);
- Str_Concat (ListRoomFullNames,RoomFullName,sizeof (ListRoomFullNames) - 1);
+ Str_Concat (ListRoomFullNames,RoomFullName,
+ Cht_MAX_LENGTH_ROOM_FULL_NAMES);
}
if (Gbl.Usrs.Me.LoggedRole == Rol_STUDENT)
if (strcmp (RoomCode,"GBL_STD"))
{
- Str_Concat (ListRoomCodes,"|#GBL_STD",sizeof (ListRoomCodes) - 1);
+ Str_Concat (ListRoomCodes,"|#GBL_STD",
+ Cht_MAX_LENGTH_ROOM_CODES);
sprintf (RoomShortName,"|%s",Txt_Students_ABBREVIATION);
- Str_Concat (ListRoomShortNames,RoomShortName,sizeof (ListRoomShortNames) - 1);
+ Str_Concat (ListRoomShortNames,RoomShortName,
+ Cht_MAX_LENGTH_ROOM_SHRT_NAMES);
sprintf (RoomFullName,"|%s (%s)",Txt_General,
Txt_ROLES_PLURAL_abc[Rol_STUDENT][Usr_SEX_ALL]);
- Str_Concat (ListRoomFullNames,RoomFullName,sizeof (ListRoomFullNames) - 1);
+ Str_Concat (ListRoomFullNames,RoomFullName,
+ Cht_MAX_LENGTH_ROOM_FULL_NAMES);
}
if (Gbl.Usrs.Me.LoggedRole == Rol_TEACHER)
if (strcmp (RoomCode,"GBL_TCH"))
{
- Str_Concat (ListRoomCodes,"|#GBL_TCH",sizeof (ListRoomCodes) - 1);
+ Str_Concat (ListRoomCodes,"|#GBL_TCH",
+ Cht_MAX_LENGTH_ROOM_CODES);
sprintf (RoomShortName,"|%s",Txt_Teachers_ABBREVIATION);
- Str_Concat (ListRoomShortNames,RoomShortName,sizeof (ListRoomShortNames) - 1);
+ Str_Concat (ListRoomShortNames,RoomShortName,
+ Cht_MAX_LENGTH_ROOM_SHRT_NAMES);
sprintf (RoomFullName,"|%s (%s)",
Txt_General,Txt_ROLES_PLURAL_abc[Rol_TEACHER][Usr_SEX_ALL]);
- Str_Concat (ListRoomFullNames,RoomFullName,sizeof (ListRoomFullNames) - 1);
+ Str_Concat (ListRoomFullNames,RoomFullName,
+ Cht_MAX_LENGTH_ROOM_FULL_NAMES);
}
for (NumMyDeg = 0;
@@ -481,20 +494,26 @@ void Cht_OpenChatWindow (void)
sprintf (ThisRoomCode,"DEG_%ld",Gbl.Usrs.Me.MyDegs.Degs[NumMyDeg].DegCod);
if (strcmp (RoomCode,ThisRoomCode))
{
- Str_Concat (ListRoomCodes,"|#",sizeof (ListRoomCodes) - 1);
- Str_Concat (ListRoomCodes,ThisRoomCode,sizeof (ListRoomCodes) - 1);
+ Str_Concat (ListRoomCodes,"|#",
+ Cht_MAX_LENGTH_ROOM_CODES);
+ Str_Concat (ListRoomCodes,ThisRoomCode,
+ Cht_MAX_LENGTH_ROOM_CODES);
/* Get data of this degree */
Deg.DegCod = Gbl.Usrs.Me.MyDegs.Degs[NumMyDeg].DegCod;
Deg_GetDataOfDegreeByCod (&Deg);
sprintf (ThisRoomShortName,"%s",Deg.ShrtName);
- Str_Concat (ListRoomShortNames,"|",sizeof (ListRoomShortNames) - 1);
- Str_Concat (ListRoomShortNames,ThisRoomShortName,sizeof (ListRoomShortNames) - 1);
+ Str_Concat (ListRoomShortNames,"|",
+ Cht_MAX_LENGTH_ROOM_SHRT_NAMES);
+ Str_Concat (ListRoomShortNames,ThisRoomShortName,
+ Cht_MAX_LENGTH_ROOM_SHRT_NAMES);
sprintf (ThisRoomFullName,"%s %s",Txt_Degree,Deg.ShrtName);
- Str_Concat (ListRoomFullNames,"|",sizeof (ListRoomFullNames) - 1);
- Str_Concat (ListRoomFullNames,ThisRoomFullName,sizeof (ListRoomFullNames) - 1);
+ Str_Concat (ListRoomFullNames,"|",
+ Cht_MAX_LENGTH_ROOM_FULL_NAMES);
+ Str_Concat (ListRoomFullNames,ThisRoomFullName,
+ Cht_MAX_LENGTH_ROOM_FULL_NAMES);
}
}
@@ -505,20 +524,26 @@ void Cht_OpenChatWindow (void)
sprintf (ThisRoomCode,"CRS_%ld",Gbl.Usrs.Me.MyCrss.Crss[NumMyCrs].CrsCod);
if (strcmp (RoomCode,ThisRoomCode))
{
- Str_Concat (ListRoomCodes,"|#",sizeof (ListRoomCodes) - 1);
- Str_Concat (ListRoomCodes,ThisRoomCode,sizeof (ListRoomCodes) - 1);
+ Str_Concat (ListRoomCodes,"|#",
+ Cht_MAX_LENGTH_ROOM_CODES);
+ Str_Concat (ListRoomCodes,ThisRoomCode,
+ Cht_MAX_LENGTH_ROOM_CODES);
/* Get data of this course */
Crs.CrsCod = Gbl.Usrs.Me.MyCrss.Crss[NumMyCrs].CrsCod;
Crs_GetDataOfCourseByCod (&Crs);
sprintf (ThisRoomShortName,"%s",Crs.ShrtName);
- Str_Concat (ListRoomShortNames,"|",sizeof (ListRoomShortNames) - 1);
- Str_Concat (ListRoomShortNames,ThisRoomShortName,sizeof (ListRoomShortNames) - 1);
+ Str_Concat (ListRoomShortNames,"|",
+ Cht_MAX_LENGTH_ROOM_SHRT_NAMES);
+ Str_Concat (ListRoomShortNames,ThisRoomShortName,
+ Cht_MAX_LENGTH_ROOM_SHRT_NAMES);
sprintf (ThisRoomFullName,"%s %s",Txt_Course,Crs.ShrtName);
- Str_Concat (ListRoomFullNames,"|",sizeof (ListRoomFullNames) - 1);
- Str_Concat (ListRoomFullNames,ThisRoomFullName,sizeof (ListRoomFullNames) - 1);
+ Str_Concat (ListRoomFullNames,"|",
+ Cht_MAX_LENGTH_ROOM_FULL_NAMES);
+ Str_Concat (ListRoomFullNames,ThisRoomFullName,
+ Cht_MAX_LENGTH_ROOM_FULL_NAMES);
}
}
diff --git a/swad_country.c b/swad_country.c
index 8fcc1f71..df0bc2ed 100644
--- a/swad_country.c
+++ b/swad_country.c
@@ -969,17 +969,21 @@ void Cty_GetListCountries (Cty_GetExtraData_t GetExtraData)
{
sprintf (StrField,"countries.Name_%s,",
Txt_STR_LANG_ID[Lan]);
- Str_Concat (SubQueryNam1,StrField,Cty_MAX_LENGTH_SUBQUERY_CTYS);
+ Str_Concat (SubQueryNam1,StrField,
+ Cty_MAX_LENGTH_SUBQUERY_CTYS);
sprintf (StrField,"Name_%s,",
Txt_STR_LANG_ID[Lan]);
- Str_Concat (SubQueryNam2,StrField,Cty_MAX_LENGTH_SUBQUERY_CTYS);
+ Str_Concat (SubQueryNam2,StrField,
+ Cty_MAX_LENGTH_SUBQUERY_CTYS);
sprintf (StrField,"countries.WWW_%s,",
Txt_STR_LANG_ID[Lan]);
- Str_Concat (SubQueryWWW1,StrField,Cty_MAX_LENGTH_SUBQUERY_CTYS);
+ Str_Concat (SubQueryWWW1,StrField,
+ Cty_MAX_LENGTH_SUBQUERY_CTYS);
sprintf (StrField,"WWW_%s,",
Txt_STR_LANG_ID[Lan]);
- Str_Concat (SubQueryWWW2,StrField,Cty_MAX_LENGTH_SUBQUERY_CTYS);
+ Str_Concat (SubQueryWWW2,StrField,
+ Cty_MAX_LENGTH_SUBQUERY_CTYS);
}
switch (Gbl.Ctys.SelectedOrderType)
@@ -1258,14 +1262,18 @@ bool Cty_GetDataOfCountryByCod (struct Country *Cty,Cty_GetExtraData_t GetExtraD
Lan++)
{
sprintf (StrField,"countries.Name_%s,",Txt_STR_LANG_ID[Lan]);
- Str_Concat (SubQueryNam1,StrField,Cty_MAX_LENGTH_SUBQUERY_CTYS);
+ Str_Concat (SubQueryNam1,StrField,
+ Cty_MAX_LENGTH_SUBQUERY_CTYS);
sprintf (StrField,"Name_%s,",Txt_STR_LANG_ID[Lan]);
- Str_Concat (SubQueryNam2,StrField,Cty_MAX_LENGTH_SUBQUERY_CTYS);
+ Str_Concat (SubQueryNam2,StrField,
+ Cty_MAX_LENGTH_SUBQUERY_CTYS);
sprintf (StrField,"countries.WWW_%s,",Txt_STR_LANG_ID[Lan]);
- Str_Concat (SubQueryWWW1,StrField,Cty_MAX_LENGTH_SUBQUERY_CTYS);
+ Str_Concat (SubQueryWWW1,StrField,
+ Cty_MAX_LENGTH_SUBQUERY_CTYS);
sprintf (StrField,"WWW_%s,",Txt_STR_LANG_ID[Lan]);
- Str_Concat (SubQueryWWW2,StrField,Cty_MAX_LENGTH_SUBQUERY_CTYS);
+ Str_Concat (SubQueryWWW2,StrField,
+ Cty_MAX_LENGTH_SUBQUERY_CTYS);
}
sprintf (Query,"(SELECT countries.Alpha2,%s%sCOUNT(*) AS NumUsrs"
" FROM countries,usr_data"
@@ -2114,18 +2122,26 @@ static void Cty_CreateCountry (struct Country *Cty)
Lan++)
{
sprintf (StrField,",Name_%s",Txt_STR_LANG_ID[Lan]);
- Str_Concat (SubQueryNam1,StrField,Cty_MAX_LENGTH_SUBQUERY_CTYS);
+ Str_Concat (SubQueryNam1,StrField,
+ Cty_MAX_LENGTH_SUBQUERY_CTYS);
- Str_Concat (SubQueryNam2,",'" ,Cty_MAX_LENGTH_SUBQUERY_CTYS_NAME);
- Str_Concat (SubQueryNam2,Cty->Name[Lan],Cty_MAX_LENGTH_SUBQUERY_CTYS_NAME);
- Str_Concat (SubQueryNam2,"'" ,Cty_MAX_LENGTH_SUBQUERY_CTYS_NAME);
+ Str_Concat (SubQueryNam2,",'",
+ Cty_MAX_LENGTH_SUBQUERY_CTYS_NAME);
+ Str_Concat (SubQueryNam2,Cty->Name[Lan],
+ Cty_MAX_LENGTH_SUBQUERY_CTYS_NAME);
+ Str_Concat (SubQueryNam2,"'",
+ Cty_MAX_LENGTH_SUBQUERY_CTYS_NAME);
sprintf (StrField,",WWW_%s",Txt_STR_LANG_ID[Lan]);
- Str_Concat (SubQueryWWW1,StrField,Cty_MAX_LENGTH_SUBQUERY_CTYS);
+ Str_Concat (SubQueryWWW1,StrField,
+ Cty_MAX_LENGTH_SUBQUERY_CTYS);
- Str_Concat (SubQueryWWW2,",'" ,Cty_MAX_LENGTH_SUBQUERY_CTYS_WWW);
- Str_Concat (SubQueryWWW2,Cty->WWW[Lan],Cty_MAX_LENGTH_SUBQUERY_CTYS_WWW);
- Str_Concat (SubQueryWWW2,"'" ,Cty_MAX_LENGTH_SUBQUERY_CTYS_WWW);
+ Str_Concat (SubQueryWWW2,",'",
+ Cty_MAX_LENGTH_SUBQUERY_CTYS_WWW);
+ Str_Concat (SubQueryWWW2,Cty->WWW[Lan],
+ Cty_MAX_LENGTH_SUBQUERY_CTYS_WWW);
+ Str_Concat (SubQueryWWW2,"'",
+ Cty_MAX_LENGTH_SUBQUERY_CTYS_WWW);
}
sprintf (Query,"INSERT INTO countries (CtyCod,Alpha2%s%s)"
" VALUES ('%03ld','%s'%s%s)",
diff --git a/swad_file.c b/swad_file.c
index f6029501..b9776b2a 100644
--- a/swad_file.c
+++ b/swad_file.c
@@ -330,7 +330,8 @@ void Fil_CreateUpdateFile (const char CurrentName[PATH_MAX + 1],
PATH_MAX);
NewName[LengthFileRoot] = '\0';
sprintf (OldName,"%s%s",NewName,ExtensionOldName);
- Str_Concat (NewName,".new",PATH_MAX);
+ Str_Concat (NewName,".new",
+ PATH_MAX);
/* The new file shouldn't exist. If it exists is due to any error when running this CGI formerly
and the file was not renamed successfully. In this case, remove it! */
diff --git a/swad_file_browser.c b/swad_file_browser.c
index a8ddeea6..cac9aecb 100644
--- a/swad_file_browser.c
+++ b/swad_file_browser.c
@@ -8176,8 +8176,10 @@ void Brw_RecFolderFileBrowser (void)
if (strlen (Path) + 1 + strlen (Gbl.FileBrowser.NewFilFolLnkName) > PATH_MAX)
Lay_ShowErrorAndExit ("Path is too long.");
- Str_Concat (Path,"/",PATH_MAX);
- Str_Concat (Path,Gbl.FileBrowser.NewFilFolLnkName,PATH_MAX);
+ Str_Concat (Path,"/",
+ PATH_MAX);
+ Str_Concat (Path,Gbl.FileBrowser.NewFilFolLnkName,
+ PATH_MAX);
/* Create the new directory */
if (mkdir (Path,(mode_t) 0xFFF) == 0)
@@ -8450,8 +8452,10 @@ static bool Brw_RcvFileInFileBrw (Brw_UploadType_t UploadType)
Gbl.FileBrowser.Priv.FullPathInTree);
if (strlen (Path) + 1 + strlen (Gbl.FileBrowser.NewFilFolLnkName) + strlen (".tmp") > PATH_MAX)
Lay_ShowErrorAndExit ("Path is too long.");
- Str_Concat (Path,"/",PATH_MAX);
- Str_Concat (Path,Gbl.FileBrowser.NewFilFolLnkName,PATH_MAX);
+ Str_Concat (Path,"/",
+ PATH_MAX);
+ Str_Concat (Path,Gbl.FileBrowser.NewFilFolLnkName,
+ PATH_MAX);
/* Check if the destination file exists */
if (Fil_CheckIfPathExists (Path))
@@ -8643,9 +8647,12 @@ void Brw_RecLinkFileBrowser (void)
sprintf (Path,"%s/%s",Gbl.FileBrowser.Priv.PathAboveRootFolder,Gbl.FileBrowser.Priv.FullPathInTree);
if (strlen (Path) + 1 + strlen (FileName) + strlen (".url") > PATH_MAX)
Lay_ShowErrorAndExit ("Path is too long.");
- Str_Concat (Path,"/",PATH_MAX);
- Str_Concat (Path,FileName,PATH_MAX);
- Str_Concat (Path,".url",PATH_MAX);
+ Str_Concat (Path,"/",
+ PATH_MAX);
+ Str_Concat (Path,FileName,
+ PATH_MAX);
+ Str_Concat (Path,".url",
+ PATH_MAX);
/* Check if the URL file exists */
if (Fil_CheckIfPathExists (Path))
diff --git a/swad_group.c b/swad_group.c
index 0722daf9..e4cc23bc 100644
--- a/swad_group.c
+++ b/swad_group.c
@@ -3108,8 +3108,10 @@ void Grp_GetNamesGrpsStdBelongsTo (long GrpTypCod,long UsrCod,char *GroupNames)
/* El group name in row[0] */
if (NumRow)
- Str_Concat (GroupNames,", ",MaxLength);
- Str_Concat (GroupNames,row[0],MaxLength);
+ Str_Concat (GroupNames,", ",
+ MaxLength);
+ Str_Concat (GroupNames,row[0],
+ MaxLength);
}
/***** Free structure that stores the query result *****/
diff --git a/swad_mail.c b/swad_mail.c
index fdfbc1cb..974696f1 100644
--- a/swad_mail.c
+++ b/swad_mail.c
@@ -913,12 +913,14 @@ void Mai_ListEmails (void)
LengthStrAddr ++;
if (LengthStrAddr > Mai_MAX_LENGTH_STR_ADDR)
Lay_ShowErrorAndExit ("The space allocated to store email addresses is full.");
- Str_Concat (StrAddresses,",",Mai_MAX_LENGTH_STR_ADDR);
+ Str_Concat (StrAddresses,",",
+ Mai_MAX_LENGTH_STR_ADDR);
}
LengthStrAddr += strlen (UsrDat.Email);
if (LengthStrAddr > Mai_MAX_LENGTH_STR_ADDR)
Lay_ShowErrorAndExit ("The space allocated to store email addresses is full.");
- Str_Concat (StrAddresses,UsrDat.Email,Mai_MAX_LENGTH_STR_ADDR);
+ Str_Concat (StrAddresses,UsrDat.Email,
+ Mai_MAX_LENGTH_STR_ADDR);
fprintf (Gbl.F.Out,"%s",
UsrDat.Email,Gbl.CurrentCrs.Crs.FullName,UsrDat.Email);
diff --git a/swad_message.c b/swad_message.c
index 7d6b97a4..bb63d73f 100644
--- a/swad_message.c
+++ b/swad_message.c
@@ -1071,10 +1071,13 @@ static void Msg_MakeFilterFromToSubquery (char FilterFromToSubquery[Msg_MAX_LENG
Str_GetNextStringUntilSpace (&Ptr,SearchWord,Usr_MAX_LENGTH_USR_NAME_OR_SURNAME);
if (strlen (FilterFromToSubquery) + strlen (SearchWord) + 512 > Msg_MAX_LENGTH_MESSAGES_QUERY) // Prevent string overflow
break;
- Str_Concat (FilterFromToSubquery,"%",Msg_MAX_LENGTH_MESSAGES_QUERY);
- Str_Concat (FilterFromToSubquery,SearchWord,Msg_MAX_LENGTH_MESSAGES_QUERY);
+ Str_Concat (FilterFromToSubquery,"%",
+ Msg_MAX_LENGTH_MESSAGES_QUERY);
+ Str_Concat (FilterFromToSubquery,SearchWord,
+ Msg_MAX_LENGTH_MESSAGES_QUERY);
}
- Str_Concat (FilterFromToSubquery,"%'",Msg_MAX_LENGTH_MESSAGES_QUERY);
+ Str_Concat (FilterFromToSubquery,"%'",
+ Msg_MAX_LENGTH_MESSAGES_QUERY);
}
else
FilterFromToSubquery[0] = '\0';
diff --git a/swad_photo.c b/swad_photo.c
index d8a50d9b..a83a1c6d 100644
--- a/swad_photo.c
+++ b/swad_photo.c
@@ -1170,12 +1170,16 @@ void Pho_ShowUsrPhoto (const struct UsrData *UsrDat,const char *PhotoURL,
Usr_MAX_BYTES_SURNAMES);
if (UsrDat->Surname2[0])
{
- Str_Concat (Surnames," ",Usr_MAX_BYTES_SURNAMES);
- Str_Concat (Surnames,UsrDat->Surname2,Usr_MAX_BYTES_SURNAMES);
+ Str_Concat (Surnames," ",
+ Usr_MAX_BYTES_SURNAMES);
+ Str_Concat (Surnames,UsrDat->Surname2,
+ Usr_MAX_BYTES_SURNAMES);
}
Str_LimitLengthHTMLStr (Surnames,23);
- Str_Concat (ShortName,"
",Usr_MAX_BYTES_FULL_NAME);
- Str_Concat (ShortName,Surnames,Usr_MAX_BYTES_FULL_NAME);
+ Str_Concat (ShortName,"
",
+ Usr_MAX_BYTES_FULL_NAME);
+ Str_Concat (ShortName,Surnames,
+ Usr_MAX_BYTES_FULL_NAME);
Act_SetUniqueId (IdCaption);
fprintf (Gbl.F.Out,"