/[mailutils]/mailutils/mailbox/argcv.c
ViewVC logotype

Diff of /mailutils/mailbox/argcv.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by gray, Wed Aug 20 14:37:48 2003 UTC revision 1.6 by gray, Fri Nov 28 15:11:18 2003 UTC
# Line 117  argcv_escape_char (int c) Line 117  argcv_escape_char (int c)
117        if (*p == c)        if (*p == c)
118          return p[-1];          return p[-1];
119      }      }
120    return c;    return -1;
121  }  }
122        
123    
# Line 259  escape_copy (char *dst, const char *src) Line 259  escape_copy (char *dst, const char *src)
259            else            else
260              {              {
261                char tmp[4];                char tmp[4];
262                snprintf (tmp, sizeof tmp, "%03o", *src);                snprintf (tmp, sizeof tmp, "%03o", *(unsigned char*)src);
263                memcpy (dst, tmp, 3);                memcpy (dst, tmp, 3);
264                dst += 3;                dst += 3;
265              }              }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26