[PATCH] Bug fixes for libgsmd-tool -m shell

Holger Freyther zecke at openmoko.org
Mon Jul 21 19:03:51 CEST 2008


On Sunday 20 July 2008 02:04:08 Jorgen Cederlof wrote:
> +                       } else if (!strncmp(buf, "prr=", 3) &&
> +                                  (ptr = strchr(buf, '=')) &&
> +                                  (fcomma = strchr(ptr+1, ','))) {

strlen("prr=") == 4 but you use strncmp with 3?

z. 


More information about the devel mailing list