Removed superfluous strcpy in keymap assignment code.

This commit is contained in:
robijn
2004-01-08 16:30:07 +00:00
parent a7579906f6
commit 09b7c9cbad
3 changed files with 1 additions and 8 deletions
-2
View File
@@ -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 );
}
}