projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://se.aminet.net/pub/Linux/distributions/slackware/slackware-10.1/source/xap...
[xscreensaver]
/
hacks
/
apple2-main.c
diff --git
a/hacks/apple2-main.c
b/hacks/apple2-main.c
index 95078befdcfb9681c135bdc328f3a7f11808e023..f183409939578677a29cceb91dd38675b406036a 100644
(file)
--- a/
hacks/apple2-main.c
+++ b/
hacks/apple2-main.c
@@
-24,7
+24,12
@@
#include <X11/keysymdef.h>
#ifdef HAVE_FORKPTY
#include <X11/keysymdef.h>
#ifdef HAVE_FORKPTY
-# include <pty.h>
+# ifdef HAVE_PTY_H
+# include <pty.h>
+# endif
+# ifdef HAVE_UTIL_H
+# include <util.h>
+# endif
#endif /* HAVE_FORKPTY */
#undef countof
#endif /* HAVE_FORKPTY */
#undef countof
@@
-673,7
+678,10
@@
void slideshow_controller(apple2_sim_t *sim, int *stepno,
if (dot) *dot=0;
}
if (strlen(basename)>20) basename[20]=0;
if (dot) *dot=0;
}
if (strlen(basename)>20) basename[20]=0;
- for (s=basename; *s; s++) *s = toupper (*s);
+ for (s=basename; *s; s++) {
+ *s = toupper (*s);
+ if (*s <= ' ') *s = '_';
+ }
sprintf(sim->typing_buf, "BLOAD %s\n", basename);
sim->typing = sim->typing_buf;
sprintf(sim->typing_buf, "BLOAD %s\n", basename);
sim->typing = sim->typing_buf;