summaryrefslogtreecommitdiff
path: root/usr/src/lib/libcurses
diff options
context:
space:
mode:
authorGary Mills <gary_mills@fastmail.fm>2015-05-26 14:31:19 -0500
committerRichard Lowe <richlowe@richlowe.net>2015-05-30 16:11:55 -0400
commit67a4bb8f9ad4c49e9aa9e21e2114a7c093c3a73a (patch)
tree171cde77ce73726516f245c4c7202ff36d6e39b1 /usr/src/lib/libcurses
parentbd0f709169e67f4bd34526e186a7c34f595f0d9b (diff)
downloadillumos-joyent-67a4bb8f9ad4c49e9aa9e21e2114a7c093c3a73a.tar.gz
5396 fix longjmp clobbering errors
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Reviewed by: Igor Kozhukhov <ikozhukhov@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src/lib/libcurses')
-rw-r--r--usr/src/lib/libcurses/screen/tparm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/src/lib/libcurses/screen/tparm.c b/usr/src/lib/libcurses/screen/tparm.c
index 70e7d6077a..99d03d5326 100644
--- a/usr/src/lib/libcurses/screen/tparm.c
+++ b/usr/src/lib/libcurses/screen/tparm.c
@@ -20,6 +20,7 @@
* CDDL HEADER END
*/
/*
+ * Copyright 2015 Gary Mills
* Copyright (c) 1996-1997 by Sun Microsystems, Inc.
* All rights reserved.
*/
@@ -27,9 +28,6 @@
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* Copyright (c) 1979 Regents of the University of California */
/*LINTLIBRARY*/
@@ -260,7 +258,7 @@ tparm(char *instring, long fp1, long fp2, long p3, long p4,
long op2;
int sign;
int onrow = 0;
- long p1 = fp1, p2 = fp2; /* copy in case < 2 actual parms */
+ volatile long p1 = fp1, p2 = fp2; /* copy in case < 2 actual parms */
char *xp;
char formatbuffer[100];
char *format;