Skip to content

Commit

Permalink
fixed common message creation.
Browse files Browse the repository at this point in the history
fixed plogv().
  • Loading branch information
sakane committed Dec 17, 2000
1 parent 8ef002e commit a6fc014
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kame/kame/racoon/plog.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: plog.c,v 1.10 2000/12/16 14:18:37 sakane Exp $ */
/* $KAME: plog.c,v 1.11 2000/12/17 21:51:56 sakane Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -86,7 +86,7 @@ plog_common(pri, fmt, func)
int pri;
const char *fmt, *func;
{
static char buf[100]; /* XXX */
static char buf[800]; /* XXX shoule be allocated every time ? */
char *p;
int reslen, len;

Expand Down Expand Up @@ -147,8 +147,6 @@ plogv(int pri, const char *func, struct sockaddr *sa,
{
char *newfmt;

if (pri < ARRAYLEN(ptab))
return;
if (pri > loglevel)
return;

Expand Down

0 comments on commit a6fc014

Please sign in to comment.