diff options
author | tenox <as@tenoware.com> | 2016-08-24 01:39:13 -0700 |
---|---|---|
committer | tenox <as@tenoware.com> | 2016-08-24 01:39:13 -0700 |
commit | 33915f44e7ed939748ce8fe23c7e727b58d74542 (patch) | |
tree | d09a6ac8d0ab5c66eefafcee28413ff8d7340c9a /dialogs.c | |
parent | 6198d44fc66aef12a9e5226660cf3f2263225d13 (diff) | |
download | wfm-33915f44e7ed939748ce8fe23c7e727b58d74542.tar.gz |
fix upload of large files1.0.5
Diffstat (limited to 'dialogs.c')
-rw-r--r-- | dialogs.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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, "<INPUT TYPE=\"HIDDEN\" NAME=\"filename\" VALUE=\"%s\">\n", virt_filename); - fprintf(cgiOut, "<LI TYPE=\"square\"><B>%s/</B>", virt_filename); + fprintf(cgiOut, "<LI TYPE=\"square\"><B>%s</B>", 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; |