compface/compface-1.5.2.diff
Tomáš Chvátal a4088d7766 - Grab patches from debian to actually work correctly
* added compface-1.5.2-destdir.diff
  * added libcompface_1.5.2-5.diff.gz
  * modified compface-1.5.2.diff
- Create test to verify the thing works
  * added compface-test.xbm
- Use shared library
- Cleanup the specfile

OBS-URL: https://build.opensuse.org/package/show/server:mail/compface?expand=0&rev=10
2014-10-08 12:47:27 +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';