diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2016-11-14 20:40:07 -0800 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2016-11-15 13:44:35 +0100 |
commit | 80b5b297a668c221902c90c7c9df37eba9a06554 (patch) | |
tree | 2a5a1d54c2b45c444b88c096050b575c9457c3f1 /egg | |
parent | 3365e7eab4b220a3e3a580634f0df0917f643175 (diff) | |
download | gcr-80b5b297a668c221902c90c7c9df37eba9a06554.tar.gz |
egg-armor: Use g_strrstr_len() instead of memrchr()
Not all systems have memrchr(), so g_strrstr_len() is more portable,
though probably slower.
https://bugzilla.gnome.org/show_bug.cgi?id=774311
Diffstat (limited to 'egg')
-rw-r--r-- | egg/egg-armor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/egg/egg-armor.c b/egg/egg-armor.c index a6930d3..7d1355c 100644 --- a/egg/egg-armor.c +++ b/egg/egg-armor.c @@ -180,7 +180,7 @@ armor_find_end (const gchar *data, * does not insist that we validate this line, and is more useful * for PGP messages, rather than the keys we usually see. */ - line = memrchr (data, '\n', (pref - 1) - data); + line = g_strrstr_len (data, (pref - 1) - data, "\n"); if (line && line[1] == '=') pref = line; |