bug-mailutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-mailutils] auth code


From: Jeff Bailey
Subject: [bug-mailutils] auth code
Date: 29 Jul 2003 23:50:49 -0400

Hey, I was just digging through the auth code to try and remember how
virtual hosting works and I came across this construct.  Should I tweak
these all to use asprintf for safety?

  filename = malloc (strlen (site_virtual_pwddir) +
                     strlen (&u[delim + 1]) + 2 /* slash and null byte
*/);
  if (filename == NULL)
    return NULL;
 
  sprintf (filename, "%s/%s", site_virtual_pwddir, &u[delim + 1]);

-- 
Breathe into my hands, I'll cup them like a glass to drink from...
 - Tattle Tale

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

[Prev in Thread] Current Thread [Next in Thread]