mirror of
https://git.freebsd.org/ports.git
synced 2025-06-13 16:50:29 -04:00
PR: 47039 Submitted by: Chris Knight <chris@aims.com.au>, "Simon 'corecode' Schubert" <corecode@corecode.ath.cx>
16 lines
435 B
Text
16 lines
435 B
Text
--- comment.c.orig Tue Nov 16 20:11:38 1999
|
|
+++ comment.c Tue Jan 14 16:17:17 2003
|
|
@@ -158,8 +158,11 @@
|
|
|
|
if(comment)
|
|
{
|
|
- malloc_comment=Realloc(malloc_comment,strlen(comment)+1);
|
|
- strcpy(malloc_comment,comment);
|
|
+ if(malloc_comment != comment)
|
|
+ {
|
|
+ malloc_comment=Realloc(malloc_comment,strlen(comment)+1);
|
|
+ strcpy(malloc_comment,comment);
|
|
+ }
|
|
current_comment=malloc_comment;
|
|
}
|
|
else
|