Diag takes a string parameter so use
Code:
diag(_str(l_tmp));



Also why not just do
Code:
char l_tmp[100];


Much shorter if you dont need the data outside of the stack tongue