when I run the code this is the warning that pops up in gcc
warning: null argument where non-null required (argument 2) [-Wnonnull]
  206 |             strcpy(ptr, '\0');
what does it mean and how do i fix this?
char *ptr = strchr(line, '\r');
strcpy(ptr, '\0');