Subject:
|
Re: Not at all a pact with the devil...
|
Newsgroups:
|
lugnet.off-topic.debate
|
Date:
|
Mon, 29 Jan 2001 20:09:50 GMT
|
Viewed:
|
336 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
In lugnet.off-topic.debate, Kevin Loch writes:
Of course that should be:
fixURL(char *buf) {
int urlsize;
urlsize=strlen(buf);
if ((buf[urlsize]-1] != '/') && (urlsize < BUFSIZE-1)) {
buf[urlsize]='/';
buf[urlsize+1]=0;
}
>
> fixURL(char *buf) {
>
> urlsize=strlen(buf);
> if ((buf[urlsize]-1] != '/') && (urlsize < BUFSIZE-1)) {
> buf[urlsize]='/';
> buf[urlsize+1]=0;
> }
>
|
|
Message has 1 Reply: ![](/news/x.gif) | | Re: Not at all a pact with the devil...
|
| (...) Might wanna throw in a comment at the top stating that behavior is undefined (and may even result in a segmentation fault) if fixURL(buf) is called when *buf == "\0". As written above, code assumes that strlen(buf) >= 1. --Todd (23 years ago, 29-Jan-01, to lugnet.off-topic.debate)
|
Message is in Reply To:
![](/news/x.gif) | | Re: Not at all a pact with the devil...
|
| I think we've been through this before. The reason that /foo/bar and /foo/bar/ are almost always synonymous is because most content (even dynamic) is filesystem based. That means you can have either the file "bar" or directory "bar" in directory (...) (23 years ago, 29-Jan-01, to lugnet.off-topic.debate)
|
45 Messages in This Thread: ![Re: Not at all a pact with the devil... -Ross Crawford (23-Jan-01 to lugnet.admin.general, lugnet.off-topic.debate)](/news/x.gif) ![](/news/246.gif) ![Re: Not at all a pact with the devil... -Larry Pieniazek (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Ross Crawford (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/246.gif) ![Re: Not at all a pact with the devil... -Larry Pieniazek (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Larry Pieniazek (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Larry Pieniazek (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/246.gif) ![Re: Not at all a pact with the devil... -Ross Crawford (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Larry Pieniazek (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/246.gif) ![Re: Not at all a pact with the devil... -Larry Pieniazek (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -William Brumbach (24-Jan-01 to lugnet.off-topic.debate)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Not at all a pact with the devil... -Tom Stangl (24-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (27-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/246.gif) ![Re: Not at all a pact with the devil... -Tim Courtney (27-Jan-01 to lugnet.off-topic.debate)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Not at all a pact with the devil... -Tom Stangl (27-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (27-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/246.gif) ![Re: Not at all a pact with the devil... -Tom Stangl (27-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![URLs without trailing slashes -Todd Lehman (27-Jan-01 to lugnet.off-topic.debate, lugnet.admin.general)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Not at all a pact with the devil... -Kevin Loch (29-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (29-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (30-Jan-01 to lugnet.off-topic.debate)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/246.gif) ![Re: Not at all a pact with the devil... -Larry Pieniazek (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Larry Pieniazek (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Frank Filz (24-Jan-01 to lugnet.off-topic.debate)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: Not at all a pact with the devil... -David Eaton (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Not at all a pact with the devil... -Ross Crawford (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (23-Jan-01 to lugnet.off-topic.debate)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (27-Jan-01 to lugnet.admin.general)](/news/x.gif) ![](/news/246.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (27-Jan-01 to lugnet.admin.general)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: Not at all a pact with the devil... -Tim Courtney (27-Jan-01 to lugnet.admin.general)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (27-Jan-01 to lugnet.admin.general)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Tim Courtney (27-Jan-01 to lugnet.admin.general)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Todd Lehman (27-Jan-01 to lugnet.admin.general)](/news/x.gif) ![](/news/46.gif) ![Re: Not at all a pact with the devil... -Tim Courtney (28-Jan-01 to lugnet.admin.general)](/news/x.gif)
![](/news/x.gif) ![](/news/268.gif) ![Re: URLs without trailing slashes -Larry Pieniazek (28-Jan-01 to lugnet.admin.general)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: URLs without trailing slashes -Tom Stangl (28-Jan-01 to lugnet.admin.general)](/news/x.gif) ![](/news/246.gif) ![Re: URLs without trailing slashes -Larry Pieniazek (28-Jan-01 to lugnet.admin.general)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: URLs without trailing slashes -Todd Lehman (29-Jan-01 to lugnet.admin.general)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|