From 51dfc6200e7601c0dca71d5537462afdd257b88e Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Tue, 7 Apr 2009 08:13:54 +0000 Subject: hexfile.c was accidentally left out of r6313 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@6337 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- xpp/hexfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xpp/hexfile.c b/xpp/hexfile.c index 2a01b3f..1227b26 100644 --- a/xpp/hexfile.c +++ b/xpp/hexfile.c @@ -1,6 +1,6 @@ /* * Written by Oron Peled - * Copyright (C) 2006, Xorcom + * Copyright (C) 2006, 2007, 2008, Xorcom * * All rights reserved. * @@ -426,6 +426,7 @@ struct hexdata *parse_hexfile(const char *fname, unsigned int maxlines) report_func(LOG_ERR, "Failed to open hexfile '%s'\n", fname); goto err; } + snprintf(hexdata->fname, PATH_MAX, "%s", fname); for(line = 1; fgets(buf, BUFSIZ, fp); line++) { if(dos_eof) { if(report_func) -- cgit v1.2.3