diff options
author | RichardHitt <rbh00@netcom.com> | 2013-03-31 12:22:08 -0700 |
---|---|---|
committer | RichardHitt <rbh00@netcom.com> | 2013-03-31 12:22:08 -0700 |
commit | 20ecd106d2a0028660ff0b755fa382078d80b527 (patch) | |
tree | 33bac7605518b54a8c10dd5f225ec79eb0e6d599 | |
parent | f285cf85ebe1b76469718052af5206e79ce81a3e (diff) | |
parent | 3fee94473beb4b95d3ea1f37758014ab6bc5af47 (diff) |
Merge pull request #485 from RichardHitt/urlgrab
Don't clobber data, just adjust url endpoint
-rw-r--r-- | src/common/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/url.c b/src/common/url.c index 717e1906..9b4e30ad 100644 --- a/src/common/url.c +++ b/src/common/url.c @@ -289,7 +289,7 @@ url_check_line (char *buf, int len) g_match_info_fetch_pos(gmi, 0, &start, &end); while (end > start && (po[end - 1] == '\r' || po[end - 1] == '\n')) - po[--end] = 0; + end--; if (g_strstr_len (po + start, end - start, "://")) url_add(po + start, end - start); g_match_info_next(gmi, NULL); |