[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 208/256: mime:escape_string minor clarification cha
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 208/256: mime:escape_string minor clarification change |
Date: |
Fri, 06 Oct 2017 19:44:59 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit bec50cc285995b18d57e5e5caf17e33100795f09
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sun Sep 17 23:31:49 2017 +0200
mime:escape_string minor clarification change
... as it also removes a warning with old gcc versions.
Bug: https://curl.haxx.se/mail/lib-2017-09/0049.html
Reported-by: Ben Greear
---
lib/mime.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lib/mime.c b/lib/mime.c
index 9f3d40f1a..312094d7f 100644
--- a/lib/mime.c
+++ b/lib/mime.c
@@ -296,9 +296,12 @@ static char *escape_string(const char *src, size_t len)
for(i = 0; len; len--) {
char c = *src++;
- if(c == '"' || c == '\\' || !c)
+ if(c == '"' || c == '\\' || !c) {
dst[i++] = '\\';
- dst[i++] = c? c: '0';
+ if(!c)
+ c = '0';
+ }
+ dst[i++] = c;
}
dst[i] = '\0';
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 146/256: MAIL-ETIQUETTE: added "1.9 Your emails are public", (continued)
- [GNUnet-SVN] [gnurl] 146/256: MAIL-ETIQUETTE: added "1.9 Your emails are public", gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 137/256: docs: curl_mime_*.3 man page formatting edits, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 249/256: libcurl-tutorial: add casts in example to avoid compilation warnings., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 130/256: mime: remove support "-" stdin pseudo-file name in curl_mime_filedata()., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 29/256: CURL_SIZEOF_LONG: removed, use only SIZEOF_LONG, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 163/256: mime: drop internal FILE * support., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 145/256: curl.h: fix "unused checksrc ignore", remove dangling reference, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 159/256: mime: fix a trivial warning., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 220/256: tests: make the imap server not verify user+password, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 210/256: cookies: use lock when using CURLINFO_COOKIELIST, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 208/256: mime:escape_string minor clarification change,
gnunet <=
- [GNUnet-SVN] [gnurl] 160/256: openssl: Integrate Peter Wu's SSLKEYLOGFILE implementation, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 177/256: configure: use -Wno-varargs on clang 3.9[.X] debug builds, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 172/256: KNOWN_BUGS: Remove CMake symbol hiding issue, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 213/256: curl: check fseek() return code and bail on error, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 120/256: non-ascii: allow conversion functions to be called with a NULL data handle., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 244/256: libcurl-tutorial: fix two typos., gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 205/256: travis: on mac, don't install openssl or libidn, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 247/256: test1153: verify quoted double-qoutes in PWD response, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 228/256: ntlm: move NTLM_NEEDS_NSS_INIT define into core NTLM header, gnunet, 2017/10/06
- [GNUnet-SVN] [gnurl] 142/256: schannel: return CURLE_SSL_CACERT on failed verification, gnunet, 2017/10/06