summaryrefslogtreecommitdiff
path: root/archivers/arj/files/patch-fardata.c
blob: 0b9163f954f24c4710bbd95773cf90791fe707c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- fardata.c.orig	2010-01-18 10:06:57.000000000 -0200
+++ fardata.c	2010-01-18 10:08:24.000000000 -0200
@@ -190,7 +190,7 @@ int msg_sprintf(char *str, FMSG *fmt, ..
 
 /* Length-limited strlen() */
 
-static int strnlen(const char FAR *s, int count)
+static int _strnlen(const char FAR *s, int count)
 {
  const char FAR *sc;
 
@@ -569,7 +569,7 @@ int vcprintf(int ccode, FMSG *fmt, va_li
     if(!s)
      s="(null)";
 #endif
-    len=strnlen(s, precision);
+    len=_strnlen(s, precision);
     if(!(flags&LEFT))
     {
      while(len<field_width--)
@@ -655,7 +655,7 @@ int vcprintf(int ccode, FMSG *fmt, va_li
     num=va_arg(args, unsigned long);
    else if(qualifier=='h')
    {
-#ifdef __linux__
+#if defined(__linux__) || defined(__FreeBSD__)
     if (flags&SIGN)
      num=va_arg(args, int);             /* num=va_arg(args, short);      */
     else