diff -Naur avarice-2.10-old/src/jtag2usb.cc avarice-2.10/src/jtag2usb.cc
--- avarice-2.10-old/src/jtag2usb.cc	2011-01-26 16:43:33.000000000 +0000
+++ avarice-2.10/src/jtag2usb.cc	2011-01-26 16:44:25.000000000 +0000
@@ -95,7 +95,7 @@
    * right-to-left, so only the least significant nibbles need to be
    * specified.
    */
-  if ((serno = strchr(jtagDeviceName, ':')) != NULL)
+  if ((serno = strchr(const_cast<char*>(jtagDeviceName), ':')) != NULL)
     {
       /* first, drop all colons there if any */
       cp2 = ++serno;
