aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/ChangeLog9
-rw-r--r--util/secmem.c5
-rw-r--r--util/ttyio.c2
3 files changed, 15 insertions, 1 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index 6d34f4c4a..e9d8da7b7 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,12 @@
+2001-05-25 Werner Koch <[email protected]>
+
+ * ttyio.c (do_get): Fixed a serious format string bug. Thanks to
+ fish stiqz.
+
+2001-05-23 Werner Koch <[email protected]>
+
+ * secmem.c (EPERM): Try to work around a Slackware problem.
+
2001-05-05 Werner Koch <[email protected]>
* http.c (http_start_data): Flush before writing.
diff --git a/util/secmem.c b/util/secmem.c
index 80d328ae2..acf73e40f 100644
--- a/util/secmem.c
+++ b/util/secmem.c
@@ -42,6 +42,11 @@
#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
#define MAP_ANONYMOUS MAP_ANON
#endif
+/* It seems that Slackware 7.1 does not know about EPERM */
+#if !defined(EPERM) && defined(ENOMEM)
+ #define EPERM ENOMEM
+#endif
+
#define DEFAULT_POOLSIZE 16384
diff --git a/util/ttyio.c b/util/ttyio.c
index 4952ac6f0..a343060d7 100644
--- a/util/ttyio.c
+++ b/util/ttyio.c
@@ -308,7 +308,7 @@ do_get( const char *prompt, int hidden )
init_ttyfp();
last_prompt_len = 0;
- tty_printf( prompt );
+ tty_printf( "%s", prompt );
buf = m_alloc(n=50);
i = 0;