Philipp Kempgen wrote: > shouldn't that be > char device[AST_MAX_EXTENSION]; > or something? No. Look at the call to ast_calloc() or ast_malloc() that allocates the structure and you will see that we allocate enough space for the string we plan to put there.