/[gnats]/gnats/gnats/mail.c
ViewVC logotype

Diff of /gnats/gnats/mail.c

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

revision 1.21 by andrewg, Sat Aug 30 11:34:10 2003 UTC revision 1.22 by chewie, Tue Nov 30 15:43:50 2004 UTC
# Line 231  getOneAddress (const char **addrPtr) Line 231  getOneAddress (const char **addrPtr)
231        addr--;        addr--;
232      }      }
233    
234    res = xstrndup (addrStart, addr - addrStart);    if (addr <= addrStart)
235        res = NULL;
236      else
237        res = xstrndup (addrStart, addr - addrStart);
238    
239    *addrPtr = (*addrEnd == '\0') ? NULL : addrEnd+1;    *addrPtr = (*addrEnd == '\0') ? NULL : addrEnd+1;
240    return res;    return res;

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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