Codebase list gnome-twitch / 67164eb
Remove old patches merged by upstream Tim Dengel 7 years ago
4 changed file(s) with 0 addition(s) and 95 deletion(s). Raw diff Collapse all Expand all
+0
-21
debian/patches/0001-meson.build-Fix-typo.patch less more
0 From: fosero <fosero@users.noreply.github.com>
1 Date: Thu, 1 Sep 2016 10:09:14 +0200
2 Subject: meson.build: Fix typo
3
4 ---
5 meson.build | 2 +-
6 1 file changed, 1 insertion(+), 1 deletion(-)
7
8 diff --git a/meson.build b/meson.build
9 index cb49019..bf22230 100644
10 --- a/meson.build
11 +++ b/meson.build
12 @@ -18,7 +18,7 @@ if get_option('do-post-install')
13 endif
14
15 if WITH_PLAYER_GSTREAMER_CLUTTER
16 - subprojec('player-backend-gstreamer-clutter')
17 + subproject('player-backend-gstreamer-clutter')
18 endif
19 if WITH_PLAYER_MPV_OPENGL
20 subproject('player-backend-mpv-opengl')
+0
-49
debian/patches/0002-Replace-unsafe-format-string-by-safe-alternative.patch less more
0 From: Tim Dengel <tim.dengel.debian@gmail.com>
1 Date: Thu, 15 Sep 2016 01:10:38 +0200
2 Subject: Replace unsafe format string by safe alternative
3
4 Compiling with -Werror=format-security fails because a printf-like function was used in an unsafe way.
5 Format strings for functions like this should be string literals, to avoid injection of
6 format specifiers, which can lead to undefined behavior if they are not filled in with arguments.
7
8 If one wants to pass a normal string to one of those functions without formatting, the format string
9 "%s" should be used, with the desired string passed as an argument for it.
10
11 See also:
12 https://stackoverflow.com/questions/17260409/fprintf-error-format-not-a-string-literal-and-no-format-arguments-werror-for
13 https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
14 ---
15 src/gt-twitch.c | 6 +++---
16 1 file changed, 3 insertions(+), 3 deletions(-)
17
18 diff --git a/src/gt-twitch.c b/src/gt-twitch.c
19 index 3fd7a93..e890be7 100644
20 --- a/src/gt-twitch.c
21 +++ b/src/gt-twitch.c
22 @@ -1720,7 +1720,7 @@ gt_twitch_follows_all(GtTwitch* self, const gchar* user_name, GError** error)
23 _("Twitch replied with error code '%d', message '%s' and body '%s'"),
24 msg->status_code, msg->reason_phrase, msg->response_body->data);
25
26 - g_set_error(error, GT_TWITCH_ERROR, GT_TWITCH_ERROR_FOLLOWS_ALL, msg_str);
27 + g_set_error(error, GT_TWITCH_ERROR, GT_TWITCH_ERROR_FOLLOWS_ALL, "%s", msg_str);
28
29 g_free(msg_str);
30
31 @@ -1864,7 +1864,7 @@ gt_twitch_follow_channel(GtTwitch* self,
32 _("Twitch replied with error code '%d', message '%s' and body '%s'"),
33 msg->status_code, msg->reason_phrase, msg->response_body->data);
34
35 - g_set_error(error, GT_TWITCH_ERROR, GT_TWITCH_ERROR_FOLLOW_CHANNEL, msg_str);
36 + g_set_error(error, GT_TWITCH_ERROR, GT_TWITCH_ERROR_FOLLOW_CHANNEL, "%s", msg_str);
37
38 g_free(msg_str);
39
40 @@ -1942,7 +1942,7 @@ gt_twitch_unfollow_channel(GtTwitch* self,
41 _("Twitch replied with error code '%d', message '%s' and body '%s'"),
42 msg->status_code, msg->reason_phrase, msg->response_body->data);
43
44 - g_set_error(error, GT_TWITCH_ERROR, GT_TWITCH_ERROR_FOLLOW_CHANNEL, msg_str);
45 + g_set_error(error, GT_TWITCH_ERROR, GT_TWITCH_ERROR_FOLLOW_CHANNEL, "%s", msg_str);
46
47 g_free(msg_str);
48
+0
-22
debian/patches/0003-Don-t-append-client-id-twice.patch less more
0 From: Ippytraxx <ippytraxx@installgentoo.com>
1 Date: Thu, 15 Sep 2016 18:19:57 +0200
2 Subject: Don't append client id twice
3
4 Fixes #195
5 ---
6 src/gt-twitch.c | 2 --
7 1 file changed, 2 deletions(-)
8
9 diff --git a/src/gt-twitch.c b/src/gt-twitch.c
10 index e890be7..501e532 100644
11 --- a/src/gt-twitch.c
12 +++ b/src/gt-twitch.c
13 @@ -186,8 +186,6 @@ send_message(GtTwitch* self, SoupMessage* msg)
14
15 soup_message_headers_append(msg->request_headers, "Client-ID", CLIENT_ID);
16
17 - soup_message_headers_append(msg->request_headers, "Client-ID", CLIENT_ID);
18 -
19 soup_session_send_message(priv->soup, msg);
20
21 ret = SOUP_STATUS_IS_SUCCESSFUL(msg->status_code);
+0
-3
debian/patches/series less more
0 0001-meson.build-Fix-typo.patch
1 0002-Replace-unsafe-format-string-by-safe-alternative.patch
2 0003-Don-t-append-client-id-twice.patch