save serial data to variable?

The "indices" is an array of pointers to the sub-strings in the NMEA sentence.
Because it is an ASCII string, you can't simply assign the value to a numeric variable.
You'll need to use "atoi" or something similar.