2011/3/22 <jonas@xxxxxxxxxxx>: > - // check if there is a shortcut > + // check if there is a shortcut in the model name > uint32 length = strlen(result); > - shortcut = '\0'; > - if (result[length - 2] == '-') { > + if (result[length - 2] == '-' && length > 2) { > shortcut = result[length - 1]; > result[length - 2] = '\0'; > + return; > } You should check the length before accessing the array (2 times in this commit). Bye, Jérôme