Skip to content

Commit

Permalink
Merge pull request gearman#225 from shadyb/master
Browse files Browse the repository at this point in the history
fixed bug which prevents whitespace in the job unique id
  • Loading branch information
p-alik authored Dec 12, 2018
2 parents 714188c + 3a09f86 commit ea7fd1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgearman-server/plugins/queue/redis/queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ static gearmand_error_t _hiredis_replay(gearman_server_st *server, void *context
char unique[GEARMAN_MAX_UNIQUE_SIZE];

char fmt_str[100] = "";
int fmt_str_length= snprintf(fmt_str, sizeof(fmt_str), "%%%d[^-]-%%%d[^-]-%%%ds",
int fmt_str_length= snprintf(fmt_str, sizeof(fmt_str), "%%%d[^-]-%%%d[^-]-%%%d[^*]",
int(queue->prefix.size()),
int(GEARMAN_FUNCTION_MAX_SIZE),
int(GEARMAN_MAX_UNIQUE_SIZE));
Expand Down

0 comments on commit ea7fd1a

Please sign in to comment.