Ups, () were missing....

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6460 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Dominik Kuhlen
2003-06-01 19:42:48 +00:00
parent e5c98a5d21
commit 0784d2c2e7

View File

@@ -67,7 +67,7 @@ sx330z_fill_toc_page(int8_t *buf,struct traveler_toc_page *toc)
toc->data1 = *((uint32_t*)buf); buf += 4;
toc->always1 = *((uint16_t*)buf); buf += 2;
// toc->numEntries=*((uint16_t*)buf); buf+=2;
toc->numEntries = buf[0] + buf[1] << 8; buf += 2;
toc->numEntries = buf[0] + (buf[1] << 8); buf += 2;
for (cnt = 0;cnt < 25;cnt++)
{
memcpy(toc->entries[cnt].name,buf,12); buf += 12;