Skip to content
Snippets Groups Projects
Commit 0a1265a0 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

strListFastDelete() now takes a count argument

parent 3d277e5a
No related branches found
No related tags found
No related merge requests found
...@@ -2850,7 +2850,7 @@ bool user_downloaded_file(scfg_t* cfg, user_t* user, client_t* client, ...@@ -2850,7 +2850,7 @@ bool user_downloaded_file(scfg_t* cfg, user_t* user, client_t* client,
SAFEPRINTF(usernum, "%u", user->number); SAFEPRINTF(usernum, "%u", user->number);
int i = strListFind(dest_user_list, usernum, /* case-sensitive: */true); int i = strListFind(dest_user_list, usernum, /* case-sensitive: */true);
if(i >= 0) { if(i >= 0) {
strListFastDelete(dest_user_list, i); strListFastDelete(dest_user_list, i, /* count: */1);
char tmp[512]; char tmp[512];
smb_hfield_replace_str(&f, RECIPIENTLIST, strListCombine(dest_user_list, tmp, sizeof(tmp), ",")); smb_hfield_replace_str(&f, RECIPIENTLIST, strListCombine(dest_user_list, tmp, sizeof(tmp), ","));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment