Changes in emu/ser.c [657abdf:8c8a883] in buchla-emu
Legend:
- Unmodified
- Added
- Removed
-
emu/ser.c
r657abdf r8c8a883 60 60 }; 61 61 62 static uint8_t mem[CON_H][CON_W + 1];62 static uint8_t mem[CON_H][CON_W]; 63 63 64 64 static SDL_Window *win; … … 81 81 static void scroll(void) 82 82 { 83 memmove(mem, mem + 1, (CON_H - 1) * (CON_W + 1));83 memmove(mem, mem + 1, (CON_H - 1) * CON_W); 84 84 memset(mem + (CON_H - 1), ' ', CON_W); 85 85 } … … 256 256 for (int32_t y = 0; y < CON_H; ++y) { 257 257 char line[CON_W + 1]; 258 line[CON_W] = 0; 258 259 259 260 if (SDL_LockMutex(cpu_mutex) < 0) { … … 261 262 } 262 263 263 memcpy(line, mem[y], CON_W + 1);264 memcpy(line, mem[y], CON_W); 264 265 265 266 if (SDL_UnlockMutex(cpu_mutex) < 0) { … … 515 516 mem[y][x] = ' '; 516 517 } 517 518 mem[y][CON_W] = 0;519 518 } 520 519 }
Note:
See TracChangeset
for help on using the changeset viewer.