opnsense-ports/textproc/stardict3/files/patch-dict__tests__t_lookupdata.cpp
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

13 lines
561 B
C++

--- ./dict/tests/t_lookupdata.cpp.orig 2012-12-11 08:15:24.000000000 +0000
+++ ./dict/tests/t_lookupdata.cpp 2012-12-11 08:29:56.172016591 +0000
@@ -38,8 +38,8 @@
List dict_list;
libs.load(dict_list);
std::vector<InstantDictIndex> dictmask;
- std::vector<gchar *> reslist[dictmask.size()];
- if (libs.LookupData("letter", reslist, NULL, NULL, NULL, dictmask))
+ std::vector< std::vector<gchar *> > reslist(dictmask.size());
+ if (libs.LookupData("letter", &reslist[0], NULL, NULL, NULL, dictmask))
return EXIT_SUCCESS;
else
return EXIT_FAILURE;