[bijiben] share: Use g_strdelimit() instead of biji_str_replace()



commit d753a6f91d2dca0370ea5b43327893d085f87264
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Mar 14 15:16:48 2013 +0100

    share: Use g_strdelimit() instead of biji_str_replace()
    
    This modifies the string in place, instead of splitting it,
    and recreating it as biji_str_replace() does.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=695849

 src/bjb-share.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/bjb-share.c b/src/bjb-share.c
index 2092548..3a102bf 100644
--- a/src/bjb-share.c
+++ b/src/bjb-share.c
@@ -22,7 +22,7 @@ mail_str ( gchar * string )
 {
   if (!string)
     return g_strdup ("''");
-  return biji_str_replace (string, "\n", " ");
+  return g_strdup (g_strdelimit (string, "\n", ' '));
 }
 
 /* TODO find EOL for xdg-email */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]