strncpy
( ort, ort, sizeof(ort)-1 );
ort[sizeof(ort)] = '\0';


ich habs so probiert ,bekomm danach aber 4 errors