added trailing string terminator

This commit is contained in:
Calson Noah 2017-05-20 17:42:11 +01:00
parent 87a0c7bcab
commit 09cf019740

View File

@ -703,7 +703,8 @@ long int select_user(void)
break;
u++;
}
if(strcmp(temp_name,user_name)=0)
temp_name[u+1]='\0';
if(strcmp(temp_name,user_name)==0)
{
//fseek(user_ptr,select_user(),SEEK_CUR);//Moving back to start reading from the correct position
break;