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
@@ -405,7 +405,6 @@ sed1330_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, "SED1330: Direct key %d: \"%s\"", x, s );
}
}
@@ -424,7 +423,6 @@ sed1330_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, "SED1330: Matrix key %d,%d: \"%s\"", x, y, s );
}
}