diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-20 07:52:33 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-20 07:52:33 +0100 |
commit | 97f37a7e784d11e3aabdc676b5af90d3bc1a1793 (patch) | |
tree | c23549e45ba15eb87a42b5a59651211c3d5dae9f | |
parent | 5317ca29e531dc32a4cca738e4862bb47230bead (diff) |
ata_id: make sure, we do not have slashes in values
-rw-r--r-- | extras/ata_id/ata_id.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c index d407b0fad9..dae464a4dc 100644 --- a/extras/ata_id/ata_id.c +++ b/extras/ata_id/ata_id.c @@ -115,8 +115,11 @@ int main(int argc, char *argv[]) } udev_util_replace_whitespace((char *) id.model, model, 40); + udev_util_replace_chars(model, NULL); udev_util_replace_whitespace((char *) id.serial_no, serial, 20); + udev_util_replace_chars(serial, NULL); udev_util_replace_whitespace((char *) id.fw_rev, revision, 8); + udev_util_replace_chars(revision, NULL); if (export) { if ((id.config >> 8) & 0x80) { |