Re: < ftp-problem with windows-nt ftpserver >

From: Florian Lohoff <flo@dont-contact.us>
Date: Thu, 1 Aug 1996 20:26:21 +0200 (MET DST)

> It looks like _somebody_ needs to remember that sscanf() returns success on
> success, unlike strcasecmp().

> /* try it as a DOS listing */
> if (n_tokens > 3 && p->name == NULL &&
> ! sscanf(tokens[0], "%[-0-9]", sbuf) && /* 04-05-70 */
> ! sscanf(tokens[1], "%[0-9:apm]", sbuf)) { /* 09:33pm */
> if (!strcasecmp(tokens[2], "<dir>")) {
> p->type = 'd';
> sprintf(sbuf, "%s %s", tokens[0], tokens[1]);

As i see this piece of code. Wouldn't it be better to replace "<" through "&lt;"
and ">" through "&gt;" to avoid future HTML Tag "misunderstandings" ?

Flo

-- 
Florian Lohoff     mailto:flo@mini.gt.owl.de      Phone:+49-5241-340796
Privates Internet Ostwestfalen-Lippe, Guetersloh - http://www.gt.owl.de
Received on Thu Aug 01 1996 - 11:28:27 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:45 MST