[recipes] Fix some obvious mistakes
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fix some obvious mistakes
- Date: Tue, 28 Feb 2017 12:40:35 +0000 (UTC)
commit 6aa5d000768a0a51eed47b4a50715f07db4aac9c
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Feb 28 07:40:10 2017 -0500
Fix some obvious mistakes
We better make sure this loop ends.
src/gr-cuisine.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-cuisine.c b/src/gr-cuisine.c
index 234c7ea..d6a364b 100644
--- a/src/gr-cuisine.c
+++ b/src/gr-cuisine.c
@@ -183,12 +183,13 @@ gr_cuisine_get_css (void)
p = css;
while (1) {
q = strstr (p, "@pkgdatadir@");
- if (!p) {
+ if (!q) {
g_string_append (s, p);
break;
}
g_string_append_len (s, p, q - p);
g_string_append (s, get_pkg_data_dir ());
+ p = q + strlen ("@pkgdatadir@");
}
return g_string_free (s, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]