2013-09-26 17:14:40 +02:00

20 lines
516 B
Plaintext

$NetBSD: patch-aa,v 1.1 2006/01/20 13:09:59 rillig Exp $
readctydata.c:94: warning: ISO C89 forbids mixed declarations and code
--- src/readctydata.c.orig 2005-12-17 15:16:38.000000000 +0100
+++ src/readctydata.c 2006-01-20 11:53:07.000000000 +0100
@@ -88,10 +88,11 @@
}
else // prefix line
{
+ char *loc = NULL; //PG4I, 26Jul2005
+
strncpy(buffer, buf, 79);
buffer[79] = 0;
- char *loc = NULL; //PG4I, 26Jul2005
if ((loc = strchr(buffer, '\r')))
*loc = '\0';