From 33915f44e7ed939748ce8fe23c7e727b58d74542 Mon Sep 17 00:00:00 2001 From: tenox Date: Wed, 24 Aug 2016 01:39:13 -0700 Subject: fix upload of large files --- dialogs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dialogs.c') diff --git a/dialogs.c b/dialogs.c index 1adfd23..c17549f 100644 --- a/dialogs.c +++ b/dialogs.c @@ -10,7 +10,7 @@ void multiprompt_ui(char *m_action) { int res; char **responses; struct stat fileinfo; - char M_action[64]; + char M_action[64]={0}; res=cgiFormStringMultiple("multiselect_filename", &responses); @@ -46,7 +46,7 @@ void multiprompt_ui(char *m_action) { checkfilename(NULL); if(stat(phys_filename, &fileinfo)==0) { fprintf(cgiOut, "\n", virt_filename); - fprintf(cgiOut, "
  • %s/", virt_filename); + fprintf(cgiOut, "
  • %s", virt_filename); if(S_ISDIR(fileinfo.st_mode)) fprintf(cgiOut, " [directory %s]\n", buprintf(du(phys_filename), FALSE)); else @@ -99,7 +99,7 @@ void multiprompt_ui(char *m_action) { // Used for rename, mkfile, mkdir // void singleprompt_ui(char *m_action) { - char M_action[64]; + char M_action[64]={0}; snprintf(M_action, sizeof(M_action), "%c%s", toupper(m_action[0]), m_action+1); @@ -337,7 +337,7 @@ void login_ui(void) { void edit_ui(void) { FILE *input; char *buff; - char backup[4]; + char backup[4]={0}; char *bkcolor; int size; -- cgit v1.2.3