forked from pool/libvoikko
f900e6b496
- Fix wrong size parameter in memset call OBS-URL: https://build.opensuse.org/request/show/98278 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvoikko?expand=0&rev=11
14 lines
496 B
Diff
14 lines
496 B
Diff
Index: libvoikko-2.1/src/grammar/grammar.cpp
|
|
===================================================================
|
|
--- libvoikko-2.1.orig/src/grammar/grammar.cpp
|
|
+++ libvoikko-2.1/src/grammar/grammar.cpp
|
|
@@ -27,7 +27,7 @@
|
|
namespace libvoikko {
|
|
|
|
void init_gc_error(voikko_grammar_error * gc_error) {
|
|
- memset(gc_error, 0, sizeof(gc_error));
|
|
+ memset(gc_error, 0, sizeof(voikko_grammar_error));
|
|
}
|
|
|
|
VOIKKOEXPORT voikko_grammar_error voikko_next_grammar_error_cstr(int handle, const char * text,
|