Skip to content

Commit 74d0d0b

Browse files
authored
1 parent 07ba378 commit 74d0d0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prefs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ void updateStatus(const char* variable, const char* _value) {
272272
else if (!strcmp(variable, "ftp_port")) ftp_port = intVal;
273273
else if (!strcmp(variable, "ftp_user")) strncpy(ftp_user, value, MAX_HOST_LEN-1);
274274
else if (!strcmp(variable, "FTP_Pass") && strchr(value, '*') == NULL) strncpy(FTP_Pass, value, MAX_PWD_LEN-1);
275-
else if (!strcmp(variable, "ftp_wd")) strncpy(ftp_wd, value, MAX_HOST_LEN-1);
275+
else if (!strcmp(variable, "ftp_wd")) strncpy(ftp_wd, value, FILE_NAME_LEN-1);
276276
else if(!strcmp(variable, "autoUpload")) autoUpload = (bool)intVal;
277277
else if(!strcmp(variable, "deleteAfter")) deleteAfter = (bool)intVal;
278278
#endif

0 commit comments

Comments
 (0)