Changeset a4de52f8dcf2fa416ef53a0b5121a592e0baecd9
- Timestamp:
- 10/07/05 11:35:37
(3 years ago)
- Author:
- Rémi Denis-Courmont <rem@videolan.org>
- git-committer:
- Rémi Denis-Courmont <rem@videolan.org> 1120988137 +0000
- git-parent:
[3de41d49fdd787ce5114372b637dcacc73cdabad]
- git-author:
- Rémi Denis-Courmont <rem@videolan.org> 1120988137 +0000
- Message:
Faster code
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r3de41d4 |
ra4de52f |
|
| 566 | 566 | |
|---|
| 567 | 567 | p = answer->p_body = malloc( 1000 + strlen( rdir->psz_dst ) ); |
|---|
| 568 | | p += sprintf( p, "<html>\n" ); |
|---|
| 569 | | p += sprintf( p, "<head>\n" ); |
|---|
| 570 | | p += sprintf( p, "<title>Redirection</title>\n" ); |
|---|
| 571 | | p += sprintf( p, "</head>\n" ); |
|---|
| 572 | | p += sprintf( p, "<body>\n" ); |
|---|
| 573 | | p += sprintf( p, "<h1><center>You should be <a href=\"%s\">redirected</a></center></h1>\n", rdir->psz_dst ); |
|---|
| 574 | | p += sprintf( p, "<hr />\n" ); |
|---|
| 575 | | p += sprintf( p, "<a href=\"http://www.videolan.org\">VideoLAN</a>\n" ); |
|---|
| 576 | | p += sprintf( p, "</body>\n" ); |
|---|
| 577 | | p += sprintf( p, "</html>\n" ); |
|---|
| | 568 | p += sprintf( (char *)p, |
|---|
| | 569 | "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n" |
|---|
| | 570 | "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" " |
|---|
| | 571 | "\"http://www.w3.org/TR/xhtml10/DTD/xhtml10transitional.dtd\">\n" |
|---|
| | 572 | "<html>\n" |
|---|
| | 573 | "<head>\n" |
|---|
| | 574 | "<title>Redirection</title>\n" |
|---|
| | 575 | "</head>\n" |
|---|
| | 576 | "<body>\n" |
|---|
| | 577 | "<h1>You should be " |
|---|
| | 578 | "<a href=\"%s\">redirected</a></h1>\n" |
|---|
| | 579 | "<hr />\n" |
|---|
| | 580 | "<p><a href=\"http://www.videolan.org\">VideoLAN</a>\n</p>" |
|---|
| | 581 | "<hr />\n" |
|---|
| | 582 | "</body>\n" |
|---|
| | 583 | "</html>\n", rdir->psz_dst ); |
|---|
| 578 | 584 | answer->i_body = p - answer->p_body; |
|---|
| 579 | 585 | |
|---|