termux-packages/x11-packages/abiword/plugins-command-xp-AbiComma...

12 lines
370 B
Diff

--- a/plugins/command/xp/AbiCommand.cpp
+++ b/plugins/command/xp/AbiCommand.cpp
@@ -1188,7 +1188,7 @@
{
const UT_UTF8String *pCom1 = pToks->getNthItem (1);
printf(" Filename %s \n",pCom1->utf8_str());
- const char *suffix = rindex (pCom1->utf8_str (), '.');
+ const char *suffix = strrchr (pCom1->utf8_str (), '.');
if (suffix != NULL)
{