Skip to content

Commit 6a871e3

Browse files
committed
[fix] fixed some format strings.
1 parent c99270f commit 6a871e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ngx_rtmp_auto_push_module.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ ngx_rtmp_auto_push_init_process(ngx_cycle_t *cycle)
200200
saun->sun_family = AF_UNIX;
201201
pid = ngx_getpid();
202202
*ngx_snprintf((u_char *) saun->sun_path, sizeof(saun->sun_path),
203-
"%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%i",
203+
"%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%P",
204204
&apcf->socket_dir, pid)
205205
= 0;
206206

@@ -403,7 +403,7 @@ ngx_rtmp_auto_push_exit_process(ngx_cycle_t *cycle)
403403

404404
pid = ngx_getpid();
405405
*ngx_snprintf(path, sizeof(path),
406-
"%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%i",
406+
"%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%P",
407407
&apcf->socket_dir, pid)
408408
= 0;
409409

@@ -516,7 +516,7 @@ ngx_rtmp_auto_push_reconnect(ngx_event_t *ev)
516516
ngx_memzero(&at.url, sizeof(at.url));
517517
u = &at.url.url;
518518
p = ngx_snprintf(path, sizeof(path) - 1,
519-
"unix:%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%i",
519+
"unix:%V/" NGX_RTMP_AUTO_PUSH_SOCKNAME ".%P",
520520
&apcf->socket_dir, pid);
521521
*p = 0;
522522

0 commit comments

Comments
 (0)