From 5d49473f91eb660800626777096b26b31e0bbd35 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Mon, 7 Apr 2003 10:21:30 +0000 Subject: [PATCH] Fix buffer filling problem --- goldlib/gall/gfilutl1.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/goldlib/gall/gfilutl1.cpp b/goldlib/gall/gfilutl1.cpp index 9368430..e0a184c 100644 --- a/goldlib/gall/gfilutl1.cpp +++ b/goldlib/gall/gfilutl1.cpp @@ -460,6 +460,7 @@ void extractdirname(char *dir, const char *path) { const char *p1 = path; char *p2, *p3; p3 = p2 = dir; + *p3 = NUL; while(*p1) { if(isslash(*p1)) p2 = p3;