summaryrefslogtreecommitdiff
path: root/src/stylesheet.c
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-07-01 11:31:03 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-07-01 11:31:03 +0000
commite75a0c7c08cc0a0864185bdf155c934526a212ac (patch)
tree9fb09298e1c5bbd77be898637d4458b685b8bfa8 /src/stylesheet.c
parent9168c67c5439783069fb29e9c0798ff9d149c0ec (diff)
downloadlibcss-e75a0c7c08cc0a0864185bdf155c934526a212ac.tar.gz
libcss-e75a0c7c08cc0a0864185bdf155c934526a212ac.tar.bz2
Len already includes the NUL, so stop trying to manually terminate url/title.
svn path=/trunk/libcss/; revision=8231
Diffstat (limited to 'src/stylesheet.c')
-rw-r--r--src/stylesheet.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/stylesheet.c b/src/stylesheet.c
index bfd159f..5102031 100644
--- a/src/stylesheet.c
+++ b/src/stylesheet.c
@@ -119,7 +119,6 @@ css_error css_stylesheet_create(css_language_level level,
return CSS_NOMEM;
}
memcpy(sheet->url, url, len);
- sheet->url[len] = '\0';
if (title != NULL) {
len = strlen(title) + 1;
@@ -133,7 +132,6 @@ css_error css_stylesheet_create(css_language_level level,
return CSS_NOMEM;
}
memcpy(sheet->title, title, len);
- sheet->title[len] = '\0';
}
sheet->origin = origin;