Version 14.80.19

This commit is contained in:
Antonio Cañas Vargas 2015-03-09 14:56:02 +01:00
parent fd6589dcf2
commit d708d0d0a3
3 changed files with 12 additions and 11 deletions

View File

@ -103,11 +103,12 @@
/****************************** Public constants *****************************/
/*****************************************************************************/
#define Log_PLATFORM_VERSION "SWAD 14.80.18 (2015/03/09)"
#define Log_PLATFORM_VERSION "SWAD 14.80.19 (2015/03/09)"
// 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 | tail -1
/*
Version 14.80.19: Mar 09, 2015 Fixed bug in web service, reported by Juan Miguel Boyero. (179482 lines)
Version 14.80.18: Mar 09, 2015 Fixed bug in statistic of degrees and courses. (179481 lines)
Version 14.80.17: Mar 09, 2015 Scope country for statistic of users. (179480 lines)
Version 14.80.16: Mar 09, 2015 Scope country for statistic of degrees and courses. (179439 lines)

View File

@ -29,7 +29,7 @@
/*****************************************************************************/
//#define LOCALHOST_UBUNTU // Comment this line if not applicable
//#define OPENSWAD_ORG // Comment this line if not applicable
#define OPENSWAD_ORG // Comment this line if not applicable
//#define SWAD_UGR_ES // Comment this line if not applicable
//#define WWW_CEVUNA_UNA_PY // Comment this line if not applicable

View File

@ -1771,19 +1771,19 @@ static void Svc_CopyUsrData (struct swad__user *Usr,struct UsrData *UsrDat,bool
strcpy (Usr->userID,"********");
/* Copy user's surname1 */
Usr->userSurname1 = (char *) soap_malloc (Gbl.soap,Usr_MAX_BYTES_NAME);
strncpy (Usr->userSurname1,UsrDat->Surname1,Usr_MAX_BYTES_NAME);
Usr->userSurname1[Usr_MAX_BYTES_NAME] = '\0';
Usr->userSurname1 = (char *) soap_malloc (Gbl.soap,256);
strncpy (Usr->userSurname1,UsrDat->Surname1,255);
Usr->userSurname1[255] = '\0';
/* Copy user's surname2 */
Usr->userSurname2 = (char *) soap_malloc (Gbl.soap,Usr_MAX_BYTES_NAME);
strncpy (Usr->userSurname2,UsrDat->Surname2,Usr_MAX_BYTES_NAME);
Usr->userSurname2[Usr_MAX_BYTES_NAME] = '\0';
Usr->userSurname2 = (char *) soap_malloc (Gbl.soap,256);
strncpy (Usr->userSurname2,UsrDat->Surname2,255);
Usr->userSurname2[255] = '\0';
/* Copy user's first name */
Usr->userFirstname = (char *) soap_malloc (Gbl.soap,Usr_MAX_BYTES_NAME);
strncpy (Usr->userFirstname,UsrDat->FirstName,Usr_MAX_BYTES_NAME);
Usr->userFirstname[Usr_MAX_BYTES_NAME] = '\0';
Usr->userFirstname = (char *) soap_malloc (Gbl.soap,256);
strncpy (Usr->userFirstname,UsrDat->FirstName,255);
Usr->userFirstname[255] = '\0';
/* User's photo URL */
Pho_BuildLinkToPhoto (UsrDat,PhotoURL,false);