fixed segfault problems - hopefully ;)

This commit is contained in:
reenoo
2001-12-02 22:22:13 +00:00
parent 6124c616b6
commit 7b374b0b3f
+2 -2
View File
@@ -148,7 +148,7 @@ lcdm001_cursorblink (int on)
int int
lcdm001_init (struct lcd_logical_driver *driver, char *args) lcdm001_init (struct lcd_logical_driver *driver, char *args)
{ {
char * device; char device[20];
int speed=B38400; int speed=B38400;
struct termios portset; struct termios portset;
@@ -186,7 +186,7 @@ lcdm001_init (struct lcd_logical_driver *driver, char *args)
//READ CONFIG FILE: //READ CONFIG FILE:
//which serial device should be used //which serial device should be used
device = config_get_string ( DriverName , "Device" , 0 , "/dev/lcd"); strcpy(device, config_get_string ( DriverName , "Device" , 0 , "/dev/lcd"));
report (RPT_INFO,"LCDM001: Using device: %s", device); report (RPT_INFO,"LCDM001: Using device: %s", device);
// Set up io port correctly, and open it... // Set up io port correctly, and open it...