compface/compface-1.5.2.diff
Jan Engelhardt f76bbdc502 - Update to use Debian patches directly, add debian.patch
- Rename compface-1.5.2-destdir.diff to Makefile.patch
- Fix build with GCC 14, add patch config.patch

OBS-URL: https://build.opensuse.org/package/show/server:mail/compface?expand=0&rev=14
2024-12-28 02:59:23 +00:00

42 lines
937 B
Diff

--- config.h
+++ config.h
@@ -30,3 +30,7 @@
#endif
#include <stdio.h>
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
--- configure.ac
+++ configure.ac
@@ -13,7 +13,7 @@
dnl Checks for header files.
AC_HEADER_STDC
-AC_CHECK_HEADERS(errno.h fcntl.h strings.h)
+AC_CHECK_HEADERS(errno.h fcntl.h strings.h unistd.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_FUNCS(strerror)
--- file.c
+++ file.c
@@ -141,7 +141,7 @@
t = fbuf;
bits = digits = words = i = 0;
if (compface_xbitmap) {
- sprintf(t,"#define noname_width 48\n#define noname_height 48\nstatic char noname_bits[] = {\n ");
+ strcpy(t,"#define noname_width 48\n#define noname_height 48\nstatic char noname_bits[] = {\n ");
while (*t) t++;
digsperword = 2;
wordsperline = 15;
@@ -189,7 +189,7 @@
}
}
if (compface_xbitmap) {
- sprintf(t, "};\n");
+ strcpy(t, "};\n");
while (*t) t++;
}
*(t++) = '\0';