strncpy(buffer, &rom[0xa0], 12);
strncpy(buffer, (const char *)&rom[0xa0], 12);
void fileExportGSASnapshot(){  if(eepromInUse) {    systemMessage(IDS_EEPROM_NOT_SUPPORTED, "EEPROM saves cannot be exported");    return;  }    char *p = strrchr(filename,'\\');  if(p)    p++;  else    p = filename;  sprintf(szFile, "%s", p);  char *exts[] = {".sps" };  FileDlg dlg(hWindow,              (char *)szFile,              (int)sizeof(szFile),              (char *)winLoadFilter(IDS_FILTER_SPS),              1,              "SPS",              exts,              (char *)NULL,               (char *)winResLoadString(IDS_SELECT_SNAPSHOT_FILE),              TRUE);  BOOL res = dlg.DoModal();    if(res == FALSE) {    DWORD res = CommDlgExtendedError();    return;  }  char buffer[16];  strncpy(buffer, &rom[0xa0], 12);  buffer[12] = 0;  fileExportSPSSnapshot(szFile, buffer);}