summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJohn Tytgat <joty@netsurf-browser.org>2009-02-01 13:37:32 +0000
committerJohn Tytgat <joty@netsurf-browser.org>2009-02-01 13:37:32 +0000
commit3f0c50e5a0eba982aca4ff377b1018018fb16b64 (patch)
tree295e998f83525c84c02f6b54496fe87670b4834b /utils
parente8399d8a76821984e1159dc27368202e96799c4b (diff)
downloadnetsurf-3f0c50e5a0eba982aca4ff377b1018018fb16b64.tar.gz
netsurf-3f0c50e5a0eba982aca4ff377b1018018fb16b64.tar.bz2
- C strings have always an implicit NUL character at the end, no need to specify an extra one.
- riscos/configure/con_theme.c: removed spurious code line. svn path=/trunk/netsurf/; revision=6331
Diffstat (limited to 'utils')
-rw-r--r--utils/container.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/container.c b/utils/container.c
index cc6db75b7..900eac6c3 100644
--- a/utils/container.c
+++ b/utils/container.c
@@ -327,8 +327,8 @@ int main(int argc, char *argv[])
int state = 0;
char *n;
- container_add(ctx, "CHEESE", "This is a test of some cheese.\0", 31);
- container_add(ctx, "FOO", "This is a test of some cheese.\0", 31);
+ container_add(ctx, "CHEESE", "This is a test of some cheese.", sizeof("This is a test of some cheese."));
+ container_add(ctx, "FOO", "This is a test of some cheese.", sizeof("This is a test of some cheese."));
container_close(ctx);