Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fwsetup-ng.git;a=commitdiff;h=1bf5d0dd32557086c61e9d0da94b99c4297c21f6

commit 1bf5d0dd32557086c61e9d0da94b99c4297c21f6
Author: James Buren <[email protected]>
Date:   Thu Sep 6 05:33:00 2012 -0500

in libpacman log callback, fix a small error that results in null bytes
showing up in log.

diff --git a/src/install.c b/src/install.c
index 9e63de7..460e417 100644
--- a/src/install.c
+++ b/src/install.c
@@ -39,7 +39,7 @@ static void install_log_callback(unsigned short level,char 
*msg)
// This parameter is never used.
level = level;

-  fprintf(logfile,"libpacman: %s%c",msg,(strchr(msg,'\n') == 0) ? '\n' : 0);
+  fprintf(logfile,"libpacman: %s%s",msg,(strchr(msg,'\n') == 0) ? "\n" : "");
}

static int install_download_callback(PM_NETBUF *ctl,int dl_xfered0,void *arg)
@@ -447,7 +447,7 @@ static bool install_groups_get(struct install **groups)
fprintf(logfile,"%s: %s\n",__func__,pacman_strerror(pm_errno));
return false;
}
-
+
for( ; list ; list = pacman_list_next(list) )
{
const char *s = (const char *) pacman_list_getdata(list);
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to