From 953e326bb2a192db7f1763f89c2e62f1533ef7a7 Mon Sep 17 00:00:00 2001 From: octo Date: Fri, 21 Apr 2006 07:37:45 +0000 Subject: [PATCH] Cast pointer arithmetics to make weird gcc versions happy. --- src/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.c b/src/common.c index 58db4d8a..d1f15513 100644 --- a/src/common.c +++ b/src/common.c @@ -488,7 +488,7 @@ static int log_create_file (char *filename, char **ds_def, int ds_num) /* The `%.*s' is needed because there is no null-byte behind * the name. */ - fprintf(log, ",%.*s", (tmp - name), name); + fprintf(log, ",%.*s", (int) (tmp - name), name); } fprintf(log, "\n"); fclose(log); -- 2.11.0