1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +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
+2
View File
@@ -11,6 +11,8 @@ http://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
== Version 0.4.3 (under dev)
* core: fix compilation on Android (replace calls to rindex by strrchr)
(bug #41420, patch #8301)
* core: fix crash when creating two bars with same name but different case
(bug #41418)
* core: fix display of read marker when all buffer lines are unread and that
+1 -2
View File
@@ -26,7 +26,6 @@
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <strings.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
@@ -630,7 +629,7 @@ gui_completion_build_list (struct t_gui_completion *completion)
}
if (repeat_last)
{
pos_space = rindex (template, ' ');
pos_space = strrchr (template, ' ');
gui_completion_build_list_template (completion,
(pos_space) ?
pos_space + 1 : template,
+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);