aboutsummaryrefslogtreecommitdiff
path: root/dialogs.c
diff options
context:
space:
mode:
authortenox <as@tenoware.com>2016-08-24 01:39:13 -0700
committertenox <as@tenoware.com>2016-08-24 01:39:13 -0700
commit33915f44e7ed939748ce8fe23c7e727b58d74542 (patch)
treed09a6ac8d0ab5c66eefafcee28413ff8d7340c9a /dialogs.c
parent6198d44fc66aef12a9e5226660cf3f2263225d13 (diff)
downloadwfm-33915f44e7ed939748ce8fe23c7e727b58d74542.tar.gz
fix upload of large files1.0.5
Diffstat (limited to 'dialogs.c')
-rw-r--r--dialogs.c8
1 files changed, 4 insertions, 4 deletions
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, "<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;