"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lookups/oracle.c" between
exim-4.91.tar.xz and exim-4.92.tar.xz

About: Exim is a message transfer agent (MTA).

oracle.c  (exim-4.91.tar.xz):oracle.c  (exim-4.92.tar.xz)
skipping to change at line 404 skipping to change at line 404
{ {
int slen; int slen;
uschar *s = US desc[i].buf; uschar *s = US desc[i].buf;
while (*s != 0 && isspace(*s)) s++; while (*s != 0 && isspace(*s)) s++;
slen = Ustrlen(s); slen = Ustrlen(s);
while (slen > 0 && isspace(s[slen-1])) slen--; while (slen > 0 && isspace(s[slen-1])) slen--;
result = string_catn(result, s, slen); result = string_catn(result, s, slen);
result = string_catn(result, US"=", 1); result = string_catn(result, US"=", 1);
/* int and float type wont ever need escaping. Otherwise, quote the value /* int and float type won't ever need escaping. Otherwise, quote the value
if it contains spaces or is empty. */ if it contains spaces or is empty. */
if (desc[i].dbtype != INT_TYPE && desc[i].dbtype != FLOAT_TYPE && if (desc[i].dbtype != INT_TYPE && desc[i].dbtype != FLOAT_TYPE &&
(def[i].buf[0] == 0 || strchr(def[i].buf, ' ') != NULL)) (def[i].buf[0] == 0 || strchr(def[i].buf, ' ') != NULL))
{ {
int j; int j;
result = string_catn(result, "\"", 1); result = string_catn(result, "\"", 1);
for (j = 0; j < def[i].col_retlen; j++) for (j = 0; j < def[i].col_retlen; j++)
{ {
if (def[i].buf[j] == '\"' || def[i].buf[j] == '\\') if (def[i].buf[j] == '\"' || def[i].buf[j] == '\\')
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)