Commits

Anonymous committed 389fbff

Fix call to strlen(). Patch by Colin Watson.

  • Participants
  • Parent commits 9737316

Comments (0)

Files changed (1)

 	}
 	
 	snprintf(buf,SMALLBUF,"%lldB/%lldB\n",dev->sector_size, dev->phys_sector_size);
-	n = strnlen(buf);
+	n = strlen(buf);
 	context->info_sectorsize = calloc(n,sizeof(char));
 	strncpy(context->info_sectorsize,buf,n);