fixes file search

This commit is contained in:
2026-08-20 18:31:39 +03:00
parent 042b35d745
commit 583de56f8f
+1 -1
View File
@@ -65,7 +65,7 @@ void process_client_command(char *line, session *sess, server_data_t *s_d) {
if (!strcmp(arg_2, "search")) { if (!strcmp(arg_2, "search")) {
char *s_type = arg_1; /* since we don't need the contents of arg_1 and char *s_type = arg_1; /* since we don't need the contents of arg_1 and
arg_2 variables */ arg_2 variables */
char *s_val = NULL; char s_val[256];
ret = sscanf(line, "%*s %*s %s %s %u %u", s_type, s_val, &(fl_args.limit), ret = sscanf(line, "%*s %*s %s %s %u %u", s_type, s_val, &(fl_args.limit),
&(fl_args.page)); &(fl_args.page));