Fixed HTTP-client query-string handling bug.
[doldaconnect.git] / daemon / log.c
index 49a444c..c3eac18 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Dolda Connect - Modular multiuser Direct Connect-style client
- *  Copyright (C) 2004 Fredrik Tolf (fredrik@dolda2000.com)
+ *  Copyright (C) 2004 Fredrik Tolf <fredrik@dolda2000.com>
  *  
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
+#include <stdlib.h>
 #include <syslog.h>
 #include <stdio.h>
 #include <stdarg.h>
 #include <sys/uio.h>
 #include <string.h>
-#include <malloc.h>
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
@@ -56,7 +56,7 @@ void flog(int priority, char *format, ...)
        writev(2, iov, 2);
     }
     if(logtosyslog)
-       syslog(priority, "%s", b);
+       syslog(syslogfac | priority, "%s", b);
     free(b);
 }