[balsa/gtk3] Cosmetic change
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk3] Cosmetic change
- Date: Sun, 15 Feb 2015 21:23:33 +0000 (UTC)
commit 4d42243b09d741f2339425959b372583ce9f8cc2
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Sun Feb 15 16:20:01 2015 -0500
Cosmetic change
* libbalsa/imap/auth-cram.c (imap_auth_cram): cosmetic change to
length of copy in strncat.
ChangeLog | 5 +++++
libbalsa/imap/auth-cram.c | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 8bc673c..05b2a10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-15 Peter Bloomfield <pbloomfield bellsouth net>
+
+ * libbalsa/imap/auth-cram.c (imap_auth_cram): cosmetic change to
+ length of copy in strncat.
+
2015-02-15 Albrecht Dreß
Build with clang (ver. LLVM 3.4)
diff --git a/libbalsa/imap/auth-cram.c b/libbalsa/imap/auth-cram.c
index dc7d91b..e51d63c 100644
--- a/libbalsa/imap/auth-cram.c
+++ b/libbalsa/imap/auth-cram.c
@@ -115,7 +115,7 @@ imap_auth_cram(ImapMboxHandle* handle)
*/
lit_conv_to_base64(ibuf, obuf, strlen (obuf), sizeof(ibuf)-2);
- strncat (ibuf, "\r\n", sizeof (ibuf) - 1);
+ strncat (ibuf, "\r\n", sizeof (ibuf) - strlen(ibuf) - 1);
imap_handle_write(handle, ibuf, strlen(ibuf));
imap_handle_flush(handle);
g_free(user); g_free(pass); /* FIXME: clean passwd first */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]