Removed superfluous strcpy in keymap assignment code.
This commit is contained in:
@@ -260,7 +260,6 @@ HD44780_init (Driver * drvthis, char *args)
|
||||
// Was a key specified in the config file ?
|
||||
if( s ) {
|
||||
p->keyMapDirect[x] = strdup( s );
|
||||
strcpy( p->keyMapDirect[x], s );
|
||||
report( RPT_INFO, "HD44780: Direct key %d: \"%s\"", x, s );
|
||||
}
|
||||
}
|
||||
@@ -279,7 +278,6 @@ HD44780_init (Driver * drvthis, char *args)
|
||||
// Was a key specified in the config file ?
|
||||
if( s ) {
|
||||
p->keyMapMatrix[y][x] = strdup( s );
|
||||
strcpy( p->keyMapMatrix[y][x], s );
|
||||
report( RPT_INFO, "HD44780: Matrix key %d %d: \"%s\"", x, y, s );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user