From 84d16bf97d28791b87a6acf5f70ea02de1065619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 13 Apr 2016 10:17:20 +0200 Subject: [PATCH] Version 15.192.13 --- swad_changelog.h | 3 ++- swad_file.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/swad_changelog.h b/swad_changelog.h index add360cf5..ab60990e1 100644 --- a/swad_changelog.h +++ b/swad_changelog.h @@ -136,13 +136,14 @@ /****************************** Public constants *****************************/ /*****************************************************************************/ -#define Log_PLATFORM_VERSION "SWAD 15.192.12 (2016-04-12)" +#define Log_PLATFORM_VERSION "SWAD 15.192.13 (2016-04-13)" #define CSS_FILE "swad15.192.9.css" #define JS_FILE "swad15.190.1.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 15.192.13:Apr 13, 2016 Fixed bug in file upload, reported by Christian Morillas Gutiérrez. (199341 lines) Version 15.192.12:Apr 12, 2016 Fixed bug in groups reported by user raistmaj in GitHub. (199339 lines) Version 15.192.11:Apr 12, 2016 Image quality in social posts reduced to 50 in order to speed up page loading. Change in layout of message post. (199337 lines) diff --git a/swad_file.c b/swad_file.c index 16d268e87..ffc81bcd6 100644 --- a/swad_file.c +++ b/swad_file.c @@ -247,6 +247,7 @@ struct Param *Fil_StartReceptionOfFile (const char *ParamFile, if (fread (FileName,sizeof (char),Param->FileName.Length,Gbl.F.Tmp) != Param->FileName.Length) Lay_ShowErrorAndExit ("Error while getting filename."); + FileName[Param->FileName.Length] = '\0'; /***** Get MIME type *****/ /* Check if MIME type exists */