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

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

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


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

Robin Farine wrote:

Yasushi Saito writes:

   > 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.)

I don't think that is the correct fix. Here is what hackerlab says
about str_cpy_n():
Hm, then str_cpy_n isn't doing what it's advertizing. How about this change instead?

*** src/hackerlab/char/str.c~   Thu Oct 23 15:43:25 2003
--- src/hackerlab/char/str.c    Tue Nov 18 23:53:15 2003
***************
*** 543,548 ****
--- 543,549 ----
     }
   while (n--)
     *to++ = 0;
+   *to = 0;
   return answer;
 }

yaz






reply via email to

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