# HG changeset patch
# User Darren Salt <[EMAIL PROTECTED]>
# Date 1181444549 -3600
# Node ID 15077cdb5bb9a6346758bfa2f81aa1df5946d463
# Parent 10a6a1f0a9fa2fedac208cbe6b331b0ce1068e24
Replace a few recently-added asprintf() calls with g_strdup_printf().
diff -r 15077cdb5bb9a6346758bfa2f81aa1df5946d463 -r
10a6a1f0a9fa2fedac208cbe6b331b0ce1068e24 src/playlist.c
--- a/src/playlist.c Sun Jun 10 04:02:29 2007 +0100
+++ b/src/playlist.c Sat Jun 09 22:21:36 2007 -0400
@@ -1647,8 +1647,7 @@ static int display_auth (int args, const
int retval = 2;
- char *txt;
- asprintf (&txt, _("Authorisation required for %s"), mrl);
+ char *txt = g_strdup_printf (_("Authorisation required for %s"), mrl);
gtk_window_set_title (GTK_WINDOW (auth.dbox), txt);
free (txt);
gtk_label_set_text (auth.label, args > 1 ? mrl + strlen (mrl) + 1 : "");
@@ -1679,9 +1678,9 @@ static int display_auth (int args, const
}
if (at)
- asprintf (&txt, "%.*s%s:%s%s", (int)(host - mrl), mrl, name, pass, at);
+ txt = g_strdup_printf ("%.*s%s:%s%s", (int)(host - mrl), mrl, name,
pass, at);
else
- asprintf (&txt, "%.*s%s:[EMAIL PROTECTED]", (int)(host - mrl), mrl,
name, pass, host);
+ txt = g_strdup_printf ("%.*s%s:[EMAIL PROTECTED]", (int)(host - mrl),
mrl, name, pass, host);
play_item_t *play_item;
int pos;
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Xine-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xine-cvslog