pccardctl: add array out-of-bounds exception

The following patch fixes an array out-of-bounds exception, which is easily
triggered with Ricoh's Bay8Controller.

Additionally, following improvements are made:
- correct a check for NULL path name
- make lookup tables const
- fix warnings stemming from printf() format strings

Signed-off-by: Robert Varga <nite@hq.alert.sk>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
3 files changed
tree: 6ac1cccea052a4e9019845d45bfa673277c50d22
  1. build/
  2. config/
  3. debug/
  4. doc/
  5. hotplug/
  6. man/
  7. src/
  8. udev/
  9. .gitignore
  10. COPYING
  11. Makefile