Mercurial > gftp.yaz
comparison src/gtk/bookmarks.c @ 941:19b6d55e2646
2008-01-24 Brian Masney <masneyb@gftp.org>
* src/gtk/gftp-gtk.c src/gtk/menu-items.c src/gtk/transfer.c
src/gtk/dnd.c src/gtk/gtkui_transfer.c src/gtk/bookmarks.c
src/uicommon/gftpui.c - s/g_malloc/g_malloc0/
author | masneyb |
---|---|
date | Thu, 24 Jan 2008 23:26:45 +0000 |
parents | 1808cebed602 |
children | 63555c9744c2 |
comparison
equal
deleted
inserted
replaced
940:6d5ea489c033 | 941:19b6d55e2646 |
---|---|
79 return; | 79 return; |
80 } | 80 } |
81 | 81 |
82 tempentry = g_malloc0 (sizeof (*tempentry)); | 82 tempentry = g_malloc0 (sizeof (*tempentry)); |
83 | 83 |
84 dpos = tempentry->path = g_malloc ((gulong) strlen (edttxt) + 1); | 84 dpos = tempentry->path = g_malloc0 ((gulong) strlen (edttxt) + 1); |
85 for (spos = edttxt; *spos != '\0';) | 85 for (spos = edttxt; *spos != '\0';) |
86 { | 86 { |
87 *dpos++ = *spos++; | 87 *dpos++ = *spos++; |
88 if (*spos == '/') | 88 if (*spos == '/') |
89 { | 89 { |