gnu-arch-users
[Top][All Lists]
Advanced

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

[Gnu-arch-users] DAV login problem (and a fix)


From: Yasushi Saito - at home
Subject: [Gnu-arch-users] DAV login problem (and a fix)
Date: Tue, 18 Nov 2003 20:51:36 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5b) Gecko/20030901 Thunderbird/0.2

I noticed today that the DAV interface isn't usable. Without getting into too much detail, here's my fix. (The problem was that the user name and password weren't always zero-terminated.)

yaz

*** src/tla/libarch/pfs-dav.c~  Thu Oct 23 15:44:28 2003
--- src/tla/libarch/pfs-dav.c   Tue Nov 18 20:33:54 2003
***************
*** 709,717 ****

   auth = userdata;
   len = str_length (auth->username);
!   str_cpy_n (username, auth->username, MIN (len, NE_ABUFSIZ - 1));
   len = str_length (auth->password);
!   str_cpy_n (password, auth->password, MIN (len, NE_ABUFSIZ - 1));

   return 0;
 }
--- 709,717 ----

   auth = userdata;
   len = str_length (auth->username);
!   str_cpy_n (username, auth->username, MIN (len + 1, NE_ABUFSIZ - 1));
   len = str_length (auth->password);
!   str_cpy_n (password, auth->password, MIN (len + 1, NE_ABUFSIZ - 1));

   return 0;
}









reply via email to

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