From d708d0d0a3451bc190a2de0b43036f784f4ceafa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Mon, 9 Mar 2015 14:56:02 +0100 Subject: [PATCH] Version 14.80.19 --- swad_changelog.h | 3 ++- swad_config.h | 2 +- swad_web_service.c | 18 +++++++++--------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/swad_changelog.h b/swad_changelog.h index 0f12d446f..62c157131 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -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) diff --git a/swad_config.h b/swad_config.h index f9c4d6af4..c76ec54f8 100644 --- a/swad_config.h +++ b/swad_config.h @@ -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 diff --git a/swad_web_service.c b/swad_web_service.c index d2a1140ad..8cc9e8625 100644 --- a/swad_web_service.c +++ b/swad_web_service.c @@ -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);