mirror of https://github.com/acanas/swad-core.git
Version 16.111.11
This commit is contained in:
parent
bd0261eddb
commit
88e3ea3deb
|
@ -189,13 +189,14 @@
|
|||
/****************************** Public constants *****************************/
|
||||
/*****************************************************************************/
|
||||
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.111.10 (2016-12-29)"
|
||||
#define Log_PLATFORM_VERSION "SWAD 16.111.11 (2016-12-29)"
|
||||
#define CSS_FILE "swad16.111.5.css"
|
||||
#define JS_FILE "swad16.101.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.111.11:Dec 29, 2016 Fixed minor bug inserting links to nicknames, reported by Coverity. (211149 lines)
|
||||
Version 16.111.10:Dec 29, 2016 Fixed minor bug in groups, reported by Coverity. (211146 lines)
|
||||
Version 16.111.9: Dec 29, 2016 Fixed bugs in lstat, reported by Coverity. (211138 lines)
|
||||
Version 16.111.8: Dec 28, 2016 Fixed bug in notifications, reported by Coverity. (211119 lines)
|
||||
|
|
|
@ -232,6 +232,8 @@ void Str_InsertLinks (char *Txt,unsigned long MaxLength,size_t MaxCharsURLOnScre
|
|||
/* Initialize anchors for this link */
|
||||
Links[NumLinks].Anchor1Nick = NULL;
|
||||
Links[NumLinks].Anchor2Nick = NULL;
|
||||
Links[NumLinks].Anchor1NickLength = 0;
|
||||
Links[NumLinks].Anchor2NickLength = 0;
|
||||
|
||||
/* Calculate length of this URL */
|
||||
Links[NumLinks].NumActualBytes = (size_t) (Links[NumLinks].PtrEnd + 1 - Links[NumLinks].PtrStart);
|
||||
|
@ -313,7 +315,7 @@ void Str_InsertLinks (char *Txt,unsigned long MaxLength,size_t MaxCharsURLOnScre
|
|||
Gbl.Form.Id,
|
||||
ParamsStr);
|
||||
Anchor1NickLength = strlen (Anchor1Nick);
|
||||
if ((Links[NumLinks].Anchor1Nick = (char *) malloc (Anchor1NickLength+1)) == NULL)
|
||||
if ((Links[NumLinks].Anchor1Nick = (char *) malloc (Anchor1NickLength + 1)) == NULL)
|
||||
Lay_ShowErrorAndExit ("Not enough memory to insert link.");
|
||||
strcpy (Links[NumLinks].Anchor1Nick,Anchor1Nick);
|
||||
Links[NumLinks].Anchor1NickLength = Anchor1NickLength;
|
||||
|
@ -326,7 +328,7 @@ void Str_InsertLinks (char *Txt,unsigned long MaxLength,size_t MaxCharsURLOnScre
|
|||
Gbl.Usrs.Me.Logged ? Gbl.Form.UniqueId :
|
||||
Gbl.Form.Id);
|
||||
Anchor2NickLength = strlen (Anchor2Nick);
|
||||
if ((Links[NumLinks].Anchor2Nick = (char *) malloc (Anchor2NickLength+1)) == NULL)
|
||||
if ((Links[NumLinks].Anchor2Nick = (char *) malloc (Anchor2NickLength + 1)) == NULL)
|
||||
Lay_ShowErrorAndExit ("Not enough memory to insert link.");
|
||||
strcpy (Links[NumLinks].Anchor2Nick,Anchor2Nick);
|
||||
Links[NumLinks].Anchor2NickLength = Anchor2NickLength;
|
||||
|
|
Loading…
Reference in New Issue