Another local simple string.

This commit is contained in:
2025-04-19 02:27:43 -04:00
parent 414c1d287e
commit 23d178d472

View File

@ -339,7 +339,7 @@ static void File_info2html(ClientInfo *client, FileInfo *finfo, int n)
int size; int size;
const char *sizeunits; const char *sizeunits;
char namebuf[MAXNAMESIZE + 1]; char namebuf[MAXNAMESIZE + 1];
char *Uref, *HUref, *Hname; char *HUref, *Hname;
const char *ref, *filecont, *name = finfo->filename; const char *ref, *filecont, *name = finfo->filename;
if (finfo->size <= 9999) { if (finfo->size <= 9999) {
@ -373,8 +373,8 @@ static void File_info2html(ClientInfo *client, FileInfo *finfo, int n)
} }
/* escape problematic filenames */ /* escape problematic filenames */
Uref = dStrdup( Escape_uri_str(ref, NULL).c_str() ); const std::string Uref = Escape_uri_str(ref, NULL);
HUref = Escape_html_str(Uref); HUref = Escape_html_str(Uref.c_str());
Hname = Escape_html_str(name); Hname = Escape_html_str(name);
if (client->old_style) { if (client->old_style) {
@ -401,7 +401,6 @@ static void File_info2html(ClientInfo *client, FileInfo *finfo, int n)
dFree(Hname); dFree(Hname);
dFree(HUref); dFree(HUref);
dFree(Uref);
} }
/* /*