comparison src/gtk/dnd.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
comparison
equal deleted inserted replaced
940:6d5ea489c033 941:19b6d55e2646
214 strcpy (str + oldlen, "\n"); 214 strcpy (str + oldlen, "\n");
215 strcpy (str + oldlen + 1, tempstr); 215 strcpy (str + oldlen + 1, tempstr);
216 } 216 }
217 else 217 else
218 { 218 {
219 str = g_malloc ((gulong) totlen + 1); 219 str = g_malloc0 ((gulong) totlen + 1);
220 strcpy (str, tempstr); 220 strcpy (str, tempstr);
221 } 221 }
222 g_free (tempstr); 222 g_free (tempstr);
223 } 223 }
224 224
260 len--; 260 len--;
261 261
262 if (len == 0) 262 if (len == 0)
263 break; 263 break;
264 264
265 tempstr = g_malloc ((gulong) len + 1); 265 tempstr = g_malloc0 ((gulong) len + 1);
266 memcpy (tempstr, oldpos, len); 266 memcpy (tempstr, oldpos, len);
267 tempstr[len] = '\0'; 267 tempstr[len] = '\0';
268 268
269 ftp_log (gftp_logging_misc, NULL, _("Received URL %s\n"), tempstr); 269 ftp_log (gftp_logging_misc, NULL, _("Received URL %s\n"), tempstr);
270 270