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

12 lines
370 B
Diff
Raw Normal View History

2022-04-30 03:32:54 +02:00
--- 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)
{