HPPA also needed other memcpy

This commit is contained in:
Michiel Broek 2004-12-30 13:53:03 +00:00
parent 3c39833c41
commit b1edb832c5

View File

@ -53,11 +53,11 @@ int Waitchar(unsigned char *ch, int wtime)
// Syslog('t', "Waitchar(): after GETCHAR() tty_status = %d, rc = %d", tty_status, rc); // Syslog('t', "Waitchar(): after GETCHAR() tty_status = %d, rc = %d", tty_status, rc);
if (tty_status == STAT_SUCCESS) { if (tty_status == STAT_SUCCESS) {
// Syslog('t', "Waitchar(): return %d", rc); // Syslog('t', "Waitchar(): return %d", rc);
#ifdef __NetBSD__ // #ifdef __NetBSD__
*ch = (unsigned char)rc; *ch = (unsigned char)rc;
#else // #else
memcpy(ch, &rc, sizeof(unsigned char)); // memcpy(ch, &rc, sizeof(unsigned char));
#endif // #endif
return 1; return 1;
} }
if (tty_status != STAT_TIMEOUT) { if (tty_status != STAT_TIMEOUT) {