diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-05-19 05:50:42 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-05-19 05:50:42 +0800 |
commit | e2a6ff17e7c8e4f071d8daa0fc1e2ad68890f346 (patch) | |
tree | 53342843cd6dd66cc1cd01c90cef4c0d5964e043 /embed/mozilla | |
parent | 7ffc417c3154aaeaf919b3038545f44cd88acdb1 (diff) | |
download | gsoc2013-epiphany-e2a6ff17e7c8e4f071d8daa0fc1e2ad68890f346.tar gsoc2013-epiphany-e2a6ff17e7c8e4f071d8daa0fc1e2ad68890f346.tar.gz gsoc2013-epiphany-e2a6ff17e7c8e4f071d8daa0fc1e2ad68890f346.tar.bz2 gsoc2013-epiphany-e2a6ff17e7c8e4f071d8daa0fc1e2ad68890f346.tar.lz gsoc2013-epiphany-e2a6ff17e7c8e4f071d8daa0fc1e2ad68890f346.tar.xz gsoc2013-epiphany-e2a6ff17e7c8e4f071d8daa0fc1e2ad68890f346.tar.zst gsoc2013-epiphany-e2a6ff17e7c8e4f071d8daa0fc1e2ad68890f346.zip |
Use sizeof here instead of hardcoding the current size.
svn path=/branches/gnome-2-22/; revision=8234
Diffstat (limited to 'embed/mozilla')
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index 7dbb7f9ab..36ea3ca29 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -594,7 +594,7 @@ impl_init (EphyEmbedSingle *esingle) "2", PR_TRUE }; char xpcomLocation[4096]; - rv = GRE_GetGREPathWithProperties(&greVersion, 1, nsnull, 0, xpcomLocation, 4096); + rv = GRE_GetGREPathWithProperties(&greVersion, 1, nsnull, 0, xpcomLocation, sizeof (xpcomLocation)); if (NS_FAILED (rv)) { g_warning ("Could not find a suitable GRE!\n"); |