~ubuntu-branches/ubuntu/quantal/ubuntuone-client/quantal

« back to all changes in this revision

Viewing changes to libsyncdaemon/syncdaemon-shares-interface.c

  • Committer: Package Import Robot
  • Author(s): Rodney Dawes
  • Date: 2012-08-30 14:36:32 UTC
  • Revision ID: package-import@ubuntu.com-20120830143632-0dlm5d64fc2e2ezs
Tags: 3.99.90-0ubuntu3
* debian/patches/00_bzr_fix_1043868.patch:
  - Allocate correct amount of space for strv for all entries. (LP: #1043868)

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
        } else {
304
304
                GSList *l;
305
305
                gint i;
306
 
                gchar **users_array = g_new0 (gchar *, g_slist_length (usernames));
 
306
                gchar **users_array = g_new0 (gchar *, g_slist_length (usernames) + 1);
307
307
 
308
308
                for (l = usernames, i = 0; l != NULL; l = l->next, i++)
309
309
                        users_array[i] = g_strdup (l->data);