1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 16:23:14 +02:00

core: fix compilation on Android (replace calls to rindex by strrchr) (bug #41420, patch #8301)

This commit is contained in:
Sebastien Helleu
2014-02-02 09:00:46 +01:00
parent 9db356bd9b
commit 01fb345fe0
3 changed files with 4 additions and 4 deletions
+1 -2
View File
@@ -22,7 +22,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include "../weechat-plugin.h"
#include "rmodifier.h"
@@ -342,7 +341,7 @@ rmodifier_new_with_string (const char *name, const char *value)
new_rmodifier = NULL;
pos1 = strchr (value, ';');
pos2 = rindex (value, ';');
pos2 = strrchr (value, ';');
if (pos1 && pos2 && (pos2 > pos1))
{
modifiers = weechat_strndup (value, pos1 - value);