Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 4415d99b authored by Rob Swindell's avatar Rob Swindell 💬

More use of K_TRIM when prompting for filename/spec

parent c1fe5a06
......@@ -120,7 +120,7 @@ void sbbs_t::showfileinfo(file_t* f, bool show_extdesc)
char* sbbs_t::getfilespec(char *str)
if(!getstr(str, MAX_FILENAME_LEN, K_NONE))
if(!getstr(str, MAX_FILENAME_LEN, K_TRIM))
strcpy(str, ALLFILES);
return NULL;
......@@ -271,7 +271,7 @@ bool sbbs_t::editfilename(file_t* f)
SAFECOPY(str, f->name);
if(!getstr(str, sizeof(str) - 1, K_EDIT|K_AUTODEL))
if(!getstr(str, sizeof(str) - 1, K_EDIT|K_AUTODEL|K_TRIM))
return false;
return false;
......@@ -336,7 +336,7 @@ bool sbbs_t::editfileinfo(file_t* f)
char uploader[LEN_ALIAS + 1];
SAFECOPY(uploader, f->from);
getstr(uploader, sizeof(uploader), K_EDIT|K_AUTODEL);
getstr(uploader, sizeof(uploader), K_EDIT|K_AUTODEL|K_TRIM);
return false;
if(*uploader != '\0' || *f->from != '\0')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment