diff options
| author | Frank Zschockelt <profanity@freakysoft.de> | 2019-05-08 22:33:19 +0200 |
|---|---|---|
| committer | Frank Zschockelt <profanity@freakysoft.de> | 2019-05-22 19:57:52 +0200 |
| commit | 56e925ed0324177d31fef9b301593557cc3e4a88 (patch) | |
| tree | 9952667ffacaafc009c2987b4e3354ac617fa2d1 /src/command/cmd_ac.h | |
| parent | 91d17edcb495e229c8691717069ebe989ab5e805 (diff) | |
| download | profani-tty-56e925ed0324177d31fef9b301593557cc3e4a88.tar.gz | |
Don't call mblen() to not depend on locale
mblen will fail with return code -1 if the locale used by the unit tests
isn't available on the machine. This will lead to an off by one error in some
tests where the needle is at the end of the haystack.
Since prof_occurrences expect null-terminated strings, the character after
the needle can simply be found by incrementing the address of the found needle
with strlen(needle).
Diffstat (limited to 'src/command/cmd_ac.h')
0 files changed, 0 insertions, 0 deletions