[Kde-bindings] [Bug 244029] build fails - variable size array in perl/qtcore/src/util.cpp
Chris Burel
chrisburel at gmail.com
Wed Jul 21 21:13:27 UTC 2010
https://bugs.kde.org/show_bug.cgi?id=244029
--- Comment #2 from Chris Burel <chrisburel gmail com> 2010-07-21 23:13:26 ---
(From update of attachment 49371)
--- kdebindings-4.4.92/perl/qtcore/src/util.cpp 2010-06-24
09:31:32.000000000 -0700
+++ kdebindings/perl/qtcore/src/util.cpp 2010-07-21 14:03:12.383019515 -0700
@@ -426,10 +426,9 @@
}
// Get the ISA array, nisa is a temp string to build package::ISA
- char nisa[strlen(package)+6];
+ char *nisa = new char[strlen(package)+6];
sprintf( nisa, "%s::ISA", package );
AV* isa = get_av( nisa, true );
+ delete[] nisa;
// Loop over the ISA array
for( int i = 0; i <= av_len( isa ); i++ ) {
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Kde-bindings
mailing list