scd: fix for Vega Alpha reader

Werner Koch wk at gnupg.org
Tue Aug 27 09:18:24 CEST 2013


On Tue, 27 Aug 2013 03:14, gniibe at fsij.org said:

> -      const unsigned char cmd[] = "\xb5\x01\x00\x03\x00";
> +      const unsigned char cmd[] = { '\xb5', '\x01', '\x00', '\x03', '\x00' };
>  
> -      return send_escape_cmd (handle, cmd, sizeof (cmd), NULL, 0, NULL);

An easier fix would have been to change just the first line to

         const unsigned char cmd[] = "\xb5\x01\x00\x03";

But you more explict code is probably easier to read for must people.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list