chiark / gitweb /
service: fix parsing word size functions
[elogind.git] / src / hostname-setup.c
index 3b988d4c8b68dfdad2c25c545d736e0adb4b470a..24e0f9d9fe84819cd720b1ec314c662b10f42771 100644 (file)
@@ -30,8 +30,6 @@
 #include "util.h"
 #include "log.h"
 
-#define LINE_MAX 4096
-
 #if defined(TARGET_FEDORA)
 #define FILENAME "/etc/sysconfig/network"
 #elif defined(TARGET_SUSE) || defined(TARGET_SLACKWARE)
@@ -52,7 +50,8 @@ static char* strip_bad_chars(char *s) {
                     (*p >= 'A' && *p <= 'Z') ||
                     (*p >= '0' && *p <= '9') ||
                     *p == '-' ||
-                    *p == '_')
+                    *p == '_' ||
+                    *p == '.')
                         *(d++) = *p;
 
         *d = 0;