don't let hexify call strlen
[deliverable/binutils-gdb.git] / gdb / common / rsp-low.c
index 7f0445cb2504886cdeac2209deeaedef5f478e93..fd6f56345c6a3cb414bfcb7ee04a3c71dfb25874 100644 (file)
@@ -177,10 +177,6 @@ hexify (char *hex, const char *bin, int count)
 {
   int i;
 
-  /* May use a length, or a nul-terminated string as input. */
-  if (count == 0)
-    count = strlen (bin);
-
   for (i = 0; i < count; i++)
     {
       *hex++ = tohex ((*bin >> 4) & 0xf);
This page took 0.034095 seconds and 4 git commands to generate.