diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-02-18 17:41:29 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2014-02-18 17:41:29 +0100 |
commit | 793f801a5ccc76645e569adb971eeced67e763be (patch) | |
tree | 3c095a73a0d16b890fe0e8fe6dfce86190501410 /src/search.cpp | |
parent | 0674f295767f2e953baf2eec13cdd4be52468ca1 (diff) | |
download | sciteco-793f801a5ccc76645e569adb971eeced67e763be.tar.gz |
removed unreliable CHR2STR() macro
* referencing temporaries is unreliable/buggy in GNU C++, at least since v4.7
* in higher optimization levels it resulted in massive memory corruptions
* this is responsible for the build issues (PPA build issues)
* instead, always declare a buffer on the stack which guarantees that the
variable lives long enough
* the g_strdup(CHR2STR(x)) idiom has been replaced with String::chrdup(x)
Diffstat (limited to 'src/search.cpp')
0 files changed, 0 insertions, 0 deletions