View Single Post
electroaudio's Avatar
Posts: 381 | Thanked: 336 times | Joined on Jan 2011 @ Stockholm, Sweden
#4
Originally Posted by daperl View Post
xxx must be NULL terminated for the line after the pink code to not randomly crash. The pink code doesn't guarantee that. So, you might actually want to change:

Code:
counter<= (sizeof(xxx)-0
to

Code:
counter< (sizeof(xxx)-1
First time i have tried to compile over a 3G network from a cafe
Unfourtunately that didnt help.

But what about the definitions of the string? is it a guarantee that a declared pointer has any space to hold a string?
Like the mime_icon_name , how can it have any allocated space to it to hold the 50 chars?
__________________
Deskypplet , a desktop for N900 *RIP*

Last edited by electroaudio; 2012-04-14 at 16:13.