summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiří Klimeš <jklimes@redhat.com>2010-11-23 19:06:58 +0100
committerJiří Klimeš <jklimes@redhat.com>2010-11-23 19:06:58 +0100
commit4b022ed32bb3d729fd21d2e33483fda03c6a6333 (patch)
tree50ad9a2424ca8fe739bc96f59ba9450e9e92f7c6
parent5c9e82d17b936c17eae16b4cb37497e68054470f (diff)
core: correct TIMESTAMP type; fixes potential crash when time() is 32bit
The Crash appeared on some platforms in glib while processing variable arguments.
-rw-r--r--src/system-settings/nm-default-wired-connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/system-settings/nm-default-wired-connection.c b/src/system-settings/nm-default-wired-connection.c
index 1cda3d9e23..0d19dea014 100644
--- a/src/system-settings/nm-default-wired-connection.c
+++ b/src/system-settings/nm-default-wired-connection.c
@@ -163,7 +163,7 @@ constructor (GType type,
NM_SETTING_CONNECTION_AUTOCONNECT, TRUE,
NM_SETTING_CONNECTION_UUID, uuid,
NM_SETTING_CONNECTION_READ_ONLY, priv->read_only,
- NM_SETTING_CONNECTION_TIMESTAMP, time (NULL),
+ NM_SETTING_CONNECTION_TIMESTAMP, (guint64) time (NULL),
NULL);
g_free (id);