aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/google-account-setup
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-06-02 07:09:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-06-02 07:09:19 +0800
commit8771a6de3590d468d1a2c3cfab34955c624f614a (patch)
treedc23ed6ab0533bc9f241976f33b6c6cc2d7ee117 /plugins/google-account-setup
parent69a1e923a71ee881721e21b991de08b897f9e7b0 (diff)
downloadgsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.tar.gz
gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.tar.zst
gsoc2013-evolution-8771a6de3590d468d1a2c3cfab34955c624f614a.zip
More code cleanup.
Diffstat (limited to 'plugins/google-account-setup')
-rw-r--r--plugins/google-account-setup/google-source.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/google-account-setup/google-source.c b/plugins/google-account-setup/google-source.c
index 93b4ee9876..d475bf8036 100644
--- a/plugins/google-account-setup/google-source.c
+++ b/plugins/google-account-setup/google-source.c
@@ -137,7 +137,7 @@ sanitize_user_mail (const gchar *user)
if (!is_email (user)) {
return g_strconcat (user, "%40gmail.com", NULL);
} else {
- gchar *tmp = g_malloc0 (sizeof (char) * (1 + strlen (user) + 2));
+ gchar *tmp = g_malloc0 (sizeof (gchar) * (1 + strlen (user) + 2));
gchar *at = strchr (user, '@');
strncpy (tmp, user, at - user);
@@ -183,7 +183,7 @@ is_default_uri (const gchar *given_uri, const gchar *username)
res = g_ascii_strcasecmp (given_uri, uri) == 0;
else {
const gchar *last;
- gchar *tmp = g_malloc0 (sizeof (char) * (1 + strlen (given_uri) + (2 * ats)));
+ gchar *tmp = g_malloc0 (sizeof (gchar) * (1 + strlen (given_uri) + (2 * ats)));
last = given_uri;
for (at = strchr (last, '@'); at; at = strchr (at + 1, '@')) {