***********************
** FILE NAME : syslog_cooker.cpp
** SYSTEM NAME :
-** VERSION NUMBER : $Revision: 1.2 $
+** VERSION NUMBER : $Revision: 1.3 $
**
** DESCRIPTION : Cooks system log lines
**
/*****************************
$Log: syslog_cooker.cpp,v $
- Revision 1.2 2004-01-13 12:20:12 arjen
+ Revision 1.3 2007-01-11 13:51:40 arjen
+ The '-' character is part of the service name.
+
+ Revision 1.2 2004/01/13 12:20:12 arjen
Accept '/' and '.' characters within the service name
Revision 1.1 2003/08/11 16:56:16 arjen
*****************************/
-/* static const char *RCSID = "$Id: syslog_cooker.cpp,v 1.2 2004-01-13 12:20:12 arjen Exp $"; */
+/* static const char *RCSID = "$Id: syslog_cooker.cpp,v 1.3 2007-01-11 13:51:40 arjen Exp $"; */
#include <ctype.h>
// Extract the service
rest <<= i + 1;
- for (i = 0; (isalpha(rest[i]) || rest[i] == '/' || rest[i] == '.') && i < ~rest; i++);
+ for (i = 0; (isalpha(rest[i]) || rest[i] == '/' || rest[i] == '.' || rest[i] == '-') && i < ~rest; i++);
srv = rest(0, i);
return true;