epiphany r8234 - branches/gnome-2-22/embed/mozilla
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany r8234 - branches/gnome-2-22/embed/mozilla
- Date: Sun, 18 May 2008 21:50:42 +0000 (UTC)
Author: chpe
Date: Sun May 18 21:50:42 2008
New Revision: 8234
URL: http://svn.gnome.org/viewvc/epiphany?rev=8234&view=rev
Log:
Use sizeof here instead of hardcoding the current size.
Modified:
branches/gnome-2-22/embed/mozilla/mozilla-embed-single.cpp
Modified: branches/gnome-2-22/embed/mozilla/mozilla-embed-single.cpp
==============================================================================
--- branches/gnome-2-22/embed/mozilla/mozilla-embed-single.cpp (original)
+++ branches/gnome-2-22/embed/mozilla/mozilla-embed-single.cpp Sun May 18 21:50:42 2008
@@ -594,7 +594,7 @@
"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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]