Update to use the HTML 4.01 Transitional DTD. <listing> -> <pre>.

This commit is contained in:
Murray Stokely 2002-03-16 08:06:14 +00:00
parent 7fece2ee33
commit 2989c7097a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=12480
3 changed files with 15 additions and 15 deletions

View file

@ -1,10 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" [ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" [
<!ENTITY base CDATA ".."> <!ENTITY base CDATA "..">
<!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.84 2002/03/08 08:37:34 kuriyama Exp $"> <!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.85 2002/03/08 13:35:13 nectar Exp $">
<!ENTITY title "FreeBSD Security Information"> <!ENTITY title "FreeBSD Security Information">
<!ENTITY % includes SYSTEM "../includes.sgml"> %includes; <!ENTITY % includes SYSTEM "../includes.sgml"> %includes;
]> ]>
<!-- $FreeBSD: www/en/security/security.sgml,v 1.84 2002/03/08 08:37:34 kuriyama Exp $ --> <!-- $FreeBSD: www/en/security/security.sgml,v 1.85 2002/03/08 13:35:13 nectar Exp $ -->
<html> <html>
&header; &header;
@ -499,7 +499,7 @@ function is not used correctly.
<LI>When using fixed size buffers, use sizeof() to prevent lossage <LI>When using fixed size buffers, use sizeof() to prevent lossage
when a buffer size is changed but the code which uses it isn't. For when a buffer size is changed but the code which uses it isn't. For
example: example:
<LISTING> <pre>
char buf[1024]; char buf[1024];
struct foo { ... }; struct foo { ... };
... ...
@ -509,7 +509,7 @@ BAD:
GOOD: GOOD:
xxx(buf, sizeof(buf)) xxx(buf, sizeof(buf))
xxx(yyy, sizeof(yyy)) xxx(yyy, sizeof(yyy))
</LISTING> </pre>
Be careful though with sizeof of pointers when you really want the size Be careful though with sizeof of pointers when you really want the size
of where it points to! of where it points to!
<P></P></LI> <P></P></LI>

View file

@ -1,10 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" [ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" [
<!ENTITY base CDATA ".."> <!ENTITY base CDATA "..">
<!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.84 2002/03/08 08:37:34 kuriyama Exp $"> <!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.85 2002/03/08 13:35:13 nectar Exp $">
<!ENTITY title "FreeBSD Security Information"> <!ENTITY title "FreeBSD Security Information">
<!ENTITY % includes SYSTEM "../includes.sgml"> %includes; <!ENTITY % includes SYSTEM "../includes.sgml"> %includes;
]> ]>
<!-- $FreeBSD: www/en/security/security.sgml,v 1.84 2002/03/08 08:37:34 kuriyama Exp $ --> <!-- $FreeBSD: www/en/security/security.sgml,v 1.85 2002/03/08 13:35:13 nectar Exp $ -->
<html> <html>
&header; &header;
@ -499,7 +499,7 @@ function is not used correctly.
<LI>When using fixed size buffers, use sizeof() to prevent lossage <LI>When using fixed size buffers, use sizeof() to prevent lossage
when a buffer size is changed but the code which uses it isn't. For when a buffer size is changed but the code which uses it isn't. For
example: example:
<LISTING> <pre>
char buf[1024]; char buf[1024];
struct foo { ... }; struct foo { ... };
... ...
@ -509,7 +509,7 @@ BAD:
GOOD: GOOD:
xxx(buf, sizeof(buf)) xxx(buf, sizeof(buf))
xxx(yyy, sizeof(yyy)) xxx(yyy, sizeof(yyy))
</LISTING> </pre>
Be careful though with sizeof of pointers when you really want the size Be careful though with sizeof of pointers when you really want the size
of where it points to! of where it points to!
<P></P></LI> <P></P></LI>

View file

@ -1,10 +1,10 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN" [ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" [
<!ENTITY base CDATA ".."> <!ENTITY base CDATA "..">
<!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.84 2002/03/08 08:37:34 kuriyama Exp $"> <!ENTITY date "$FreeBSD: www/en/security/security.sgml,v 1.85 2002/03/08 13:35:13 nectar Exp $">
<!ENTITY title "FreeBSD Security Information"> <!ENTITY title "FreeBSD Security Information">
<!ENTITY % includes SYSTEM "../includes.sgml"> %includes; <!ENTITY % includes SYSTEM "../includes.sgml"> %includes;
]> ]>
<!-- $FreeBSD: www/en/security/security.sgml,v 1.84 2002/03/08 08:37:34 kuriyama Exp $ --> <!-- $FreeBSD: www/en/security/security.sgml,v 1.85 2002/03/08 13:35:13 nectar Exp $ -->
<html> <html>
&header; &header;
@ -499,7 +499,7 @@ function is not used correctly.
<LI>When using fixed size buffers, use sizeof() to prevent lossage <LI>When using fixed size buffers, use sizeof() to prevent lossage
when a buffer size is changed but the code which uses it isn't. For when a buffer size is changed but the code which uses it isn't. For
example: example:
<LISTING> <pre>
char buf[1024]; char buf[1024];
struct foo { ... }; struct foo { ... };
... ...
@ -509,7 +509,7 @@ BAD:
GOOD: GOOD:
xxx(buf, sizeof(buf)) xxx(buf, sizeof(buf))
xxx(yyy, sizeof(yyy)) xxx(yyy, sizeof(yyy))
</LISTING> </pre>
Be careful though with sizeof of pointers when you really want the size Be careful though with sizeof of pointers when you really want the size
of where it points to! of where it points to!
<P></P></LI> <P></P></LI>