active = true;
else
// Tell remote host that an exception has occurred.
- sprintf((char *)buffer, "S%02x", signal(type));
+ snprintf((char *)buffer, sizeof(buffer), "S%02x", signal(type));
send(buffer);
// Stick frame regs into our reg cache.
// if this command came from a running gdb, answer it --
// the other guy has no way of knowing if we're in or out
// of this loop when he issues a "remote-signal".
- sprintf((char *)buffer, "S%02x", signal(type));
+ snprintf((char *)buffer, sizeof(buffer), "S%02x", signal(type));
send(buffer);
continue;
}
// Setup the model name
- sprintf((char *)driveID.atap_model, "5MI EDD si k");
+ strncpy((char *)driveID.atap_model, "5MI EDD si k",
+ sizeof(driveID.atap_model));
// Set the maximum multisector transfer size
driveID.atap_multi = MAX_MULTSECT;
// IORDY supported, IORDY disabled, LBA enabled, DMA enabled