summaryrefslogtreecommitdiff
path: root/comms/asterisk14/patches/patch-funcs_func__env.c
blob: 61088c0865dfdfa35f484b4591c19a08f679c349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-funcs_func__env.c,v 1.1.1.1 2016/10/25 08:17:07 jnemeth Exp $

--- funcs/func_env.c.orig	2015-10-09 21:48:48.000000000 +0000
+++ funcs/func_env.c
@@ -309,7 +309,7 @@ static int stat_read(struct ast_channel 
 			snprintf(buf, len, "%d", (int) s.st_ctime);
 			break;
 		case 'm':
-			snprintf(buf, len, "%o", s.st_mode);
+			snprintf(buf, len, "%o", (unsigned int) s.st_mode);
 			break;
 		}
 	}