forked from pool/fetchmail
d3007028df
- Update to 6.4.32: * Use configure to find rst2html, some systems install it only with .py suffix, others only without, and some install both. * Update README.maintainer * Translations updated. - Reapplied patches - Add 44-uncorrupt_runfetchmail.patch to clean up some contrib/ scripts (gl#fetchmail/fetchmail#44). OBS-URL: https://build.opensuse.org/request/show/991826 OBS-URL: https://build.opensuse.org/package/show/server:mail/fetchmail?expand=0&rev=137
30 lines
834 B
Diff
30 lines
834 B
Diff
From: Matthias Andree <matthias.andree@gmx.de>
|
|
Date: Sun, 25 Nov 2018 12:09:07 +0100
|
|
Subject: Chase and integrate interface change.
|
|
Git-repo: https://gitlab.com/fetchmail/fetchmail.git
|
|
Git-commit: d52b7b6859d46134b46e6de9b408739b18745d47
|
|
|
|
---
|
|
oauth2.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/oauth2.c
|
|
+++ b/oauth2.c
|
|
@@ -10,6 +10,7 @@
|
|
#include "oauth2.h"
|
|
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
char *get_oauth2_string(struct query *ctl,flag xoauth2)
|
|
@@ -52,7 +53,7 @@ char *get_oauth2_string(struct query *ct
|
|
}
|
|
|
|
oauth2b64 = (char *)xmalloc(2*strlen(oauth2str)+8);
|
|
- to64frombits(oauth2b64, oauth2str, strlen(oauth2str));
|
|
+ to64frombits(oauth2b64, oauth2str, strlen(oauth2str), oauth2len);
|
|
|
|
memset(oauth2str, 0x55, strlen(oauth2str));
|
|
free(oauth2str);
|