fixes file search
This commit is contained in:
@@ -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));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user