Skip to content

Commit d93df24

Browse files
committed
fix extracting gearmand version
1 parent ccbd501 commit d93df24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

common/gearman_utils.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ int get_gearman_server_data(mod_gm_server_status_t *stats, char ** message, char
300300
if((line = strsep( &output, "\n" )) != NULL) {
301301
gm_log( GM_LOG_TRACE, "%s\n", line );
302302
if(line[0] == 'O') {
303-
strncpy(*version, line+3, 10);
303+
snprintf(*version, GM_BUFFERSIZE, "%s", line+3);
304304
} else {
305305
snprintf(*version, GM_BUFFERSIZE, "%s", line);
306306
}

0 commit comments

Comments
 (0)