Skip to content

Commit 0d68145

Browse files
committed
fix build error [-Werror=format-security]
1 parent 8f05497 commit 0d68145

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/src/FutureSession.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ PHP_METHOD(FutureSession, get)
3737

3838
if (self->exception_message) {
3939
zend_throw_exception_ex(exception_class(self->exception_code),
40-
self->exception_code TSRMLS_CC, self->exception_message);
40+
self->exception_code TSRMLS_CC, "%s", self->exception_message);
4141
return;
4242
}
4343

@@ -71,7 +71,7 @@ PHP_METHOD(FutureSession, get)
7171
}
7272

7373
zend_throw_exception_ex(exception_class(self->exception_code),
74-
self->exception_code TSRMLS_CC, self->exception_message);
74+
self->exception_code TSRMLS_CC, "%s", self->exception_message);
7575
return;
7676
}
7777

0 commit comments

Comments
 (0)