mirror of
https://github.com/ascii-boxes/boxes.git
synced 2024-12-14 02:40:38 +01:00
Added extern declaration of strncpy() to myregsub(), hoping this will clear some warnings on Debian
This commit is contained in:
parent
c59b487685
commit
3d99016b51
@ -3,7 +3,7 @@
|
|||||||
* Date created: Copyright (c) 1986 by University of Toronto.
|
* Date created: Copyright (c) 1986 by University of Toronto.
|
||||||
* Author: Henry Spencer.
|
* Author: Henry Spencer.
|
||||||
* Extensions and modifications by Thomas Jensen
|
* Extensions and modifications by Thomas Jensen
|
||||||
* Version: $Id: regsub.c,v 1.4 1999-07-20 11:51:41-07 tsjensen Exp $
|
* Version: $Id: regsub.c,v 1.5 2006/07/12 05:20:26 tsjensen Exp tsjensen $
|
||||||
* Language: K&R C (traditional)
|
* Language: K&R C (traditional)
|
||||||
* World Wide Web: http://boxes.thomasjensen.com/
|
* World Wide Web: http://boxes.thomasjensen.com/
|
||||||
* Purpose: Perform substitutions after a regexp match
|
* Purpose: Perform substitutions after a regexp match
|
||||||
@ -24,6 +24,9 @@
|
|||||||
* Revision History:
|
* Revision History:
|
||||||
*
|
*
|
||||||
* $Log: regsub.c,v $
|
* $Log: regsub.c,v $
|
||||||
|
* Revision 1.5 2006/07/12 05:20:26 tsjensen
|
||||||
|
* Updated world wide web link in comment header
|
||||||
|
*
|
||||||
* Revision 1.4 1999-07-20 11:51:41-07 tsjensen
|
* Revision 1.4 1999-07-20 11:51:41-07 tsjensen
|
||||||
* Bugfix: REPLACE "^" with "a" caused a hangup. Now automatically declaring
|
* Bugfix: REPLACE "^" with "a" caused a hangup. Now automatically declaring
|
||||||
* matches which have a length of zero to be of scope "once".
|
* matches which have a length of zero to be of scope "once".
|
||||||
@ -46,7 +49,7 @@
|
|||||||
#include "regmagic.h"
|
#include "regmagic.h"
|
||||||
|
|
||||||
char rcsid_regsub_c[] =
|
char rcsid_regsub_c[] =
|
||||||
"$Id: regsub.c,v 1.4 1999-07-20 11:51:41-07 tsjensen Exp $";
|
"$Id: regsub.c,v 1.5 2006/07/12 05:20:26 tsjensen Exp tsjensen $";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -146,6 +149,7 @@ myregsub (prog, orig, orig_len, repstr, dest, dest_size, mode)
|
|||||||
int rc; /* received return codes */
|
int rc; /* received return codes */
|
||||||
size_t rest_size; /* remaining space in dest */
|
size_t rest_size; /* remaining space in dest */
|
||||||
size_t partlen; /* temp length of a piece handled */
|
size_t partlen; /* temp length of a piece handled */
|
||||||
|
extern char *strncpy();
|
||||||
|
|
||||||
fill = 0;
|
fill = 0;
|
||||||
sp = orig;
|
sp = orig;
|
||||||
|
Loading…
Reference in New Issue
Block a user