magnhaug/BEKK-Python-idiomatic-blogpost — pull request #2 by ehamberg (2012-09-21 19:58:08+00:00)
Title: Fix segmentation fault in C code 

The condition `i < sizeof(food)` is wrong since it would return the size of the entire array – which seems to be filled with strings (i.e. char pointers). So if the array contains 5 strings `sizeof(food)` would probably return 5*8=40 on a 64-bit machine.

You could check against `sizeof(food)/sizeof(char*)`, but I guess that would just detract from the point you try to get across. :-)