diff subreader.c @ 12646:9a495bdc3a1e

string handling security fixes patch by Nicholas Kain, Alexander Strasser <eclipse7@gmx.net> reviewed by Pontscho, Alex, Rich
author diego
date Fri, 25 Jun 2004 16:49:53 +0000
parents 6b11ffd069cf
children dc8eba991005
line wrap: on
line diff
--- a/subreader.c	Fri Jun 25 16:43:34 2004 +0000
+++ b/subreader.c	Fri Jun 25 16:49:53 2004 +0000
@@ -1133,7 +1133,7 @@
   while (l){
      char *ip = icbuffer;
      char *op = sub->text[--l];
-     strcpy(ip, op);
+     strlcpy(ip, op, ICBUFFSIZE);
      ileft = strlen(ip);
      oleft = ICBUFFSIZE - 1;