Skip to content

Commit 0393ef2

Browse files
zmodemmemfrob
authored andcommitted
[Unwind] Cast exception class pointer for strcpy
Follow-up to f5b997e6b706, see comment on https://reviews.llvm.org/D109047 Differential revision: https://reviews.llvm.org/D109168
1 parent 429c189 commit 0393ef2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libunwind/src/UnwindLevel1-gcc-ext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ _Unwind_Backtrace(_Unwind_Trace_Fn callback, void *ref) {
109109
// Create a mock exception object for force unwinding.
110110
_Unwind_Exception ex;
111111
memset(&ex, '\0', sizeof(ex));
112-
strcpy(&ex.exception_class, "CLNGUNW");
112+
strcpy((char *)&ex.exception_class, "CLNGUNW");
113113
#endif
114114

115115
// walk each frame

0 commit comments

Comments
 (0)