diff options
| author | Bill Fumerola <billf@FreeBSD.org> | 1999-10-15 17:33:24 +0000 |
|---|---|---|
| committer | Bill Fumerola <billf@FreeBSD.org> | 1999-10-15 17:33:24 +0000 |
| commit | 39b235ef2089ff87f90b5a316dbf966103c709c4 (patch) | |
| tree | 292e1c4254301bee9f4e38eac0990b0bd43f9f2d /usr.sbin/vidcontrol | |
| parent | ed339585213244f5fdef9306a5959bccc703db6c (diff) | |
Notes
Diffstat (limited to 'usr.sbin/vidcontrol')
| -rw-r--r-- | usr.sbin/vidcontrol/vidcontrol.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/vidcontrol/vidcontrol.c b/usr.sbin/vidcontrol/vidcontrol.c index efa6c2d0f48da..d34ff7b2527f4 100644 --- a/usr.sbin/vidcontrol/vidcontrol.c +++ b/usr.sbin/vidcontrol/vidcontrol.c @@ -81,11 +81,12 @@ mkfullname(const char *s1, const char *s2, const char *s3) int f; f = strlen(s1) + strlen(s2) + strlen(s3) + 1; - if (f > bufl) + if (f > bufl) { if (buf) buf = (char *)realloc(buf, f); else buf = (char *)malloc(f); + } if (!buf) { bufl = 0; return(NULL); |
