diff --git a/pickit2.c b/pickit2.c index bbf8b9ad..af867097 100644 --- a/pickit2.c +++ b/pickit2.c @@ -202,10 +202,10 @@ static int pickit2_open(PROGRAMMER * pgm, char * port) HidD_GetProductString(PDATA(pgm)->usb_handle, buff, PGM_DESCLEN-1); // convert from wide chars, but do not overwrite trailing '\0' - memset(&(pgm->type), 0, PGM_DESCLEN); + memset(&(pgm->desc), 0, PGM_DESCLEN); for (i = 0; i < (PGM_DESCLEN-1) && buff[i]; i++) { - pgm->type[i] = (char)buff[i]; // TODO what about little/big endian??? + pgm->desc[i] = (char)buff[i]; // TODO what about little/big endian??? } } #else