>>851
まちがえた

for (p = data; *p; p++){
 if (*p == '\n'){
  if (count >= countb){
   countb = count;
  }
  count = 0;
 } else {
  count++;
 }
}