X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fpath.c;h=5a9529ded7b129d06a3676fbea39d0e02e523250;hb=4dd01e6c68874a5fc2988d63d6c26984889310a3;hp=7475fa081b01113df129ef65af21979316aa68ab;hpb=0569d6d1631dc90d4f2f2df6bdd0599c7ecc7814;p=mmh diff --git a/sbr/path.c b/sbr/path.c index 7475fa0..5a9529d 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -2,8 +2,6 @@ /* * path.c -- return a pathname * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -90,7 +88,7 @@ expath (char *name, int flag) name += NCWD; if (strcmp (name, DOTDOT) == 0 || strcmp (name, PWD) == 0) { - snprintf (buffer, sizeof(buffer), "%.*s", cp - pwds, pwds); + snprintf (buffer, sizeof(buffer), "%.*s", (int)(cp - pwds), pwds); return getcpy (buffer); } @@ -99,7 +97,7 @@ expath (char *name, int flag) else cp = ep; - snprintf (buffer, sizeof(buffer), "%.*s/%s", cp - pwds, pwds, name); + snprintf (buffer, sizeof(buffer), "%.*s/%s", (int)(cp - pwds), pwds, name); return getcpy (buffer); }