Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0d68145

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /