X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fpath.c;h=7ef83eabd39d1ff8cac24ef7f4089041bac27c3b;hp=7475fa081b01113df129ef65af21979316aa68ab;hb=322f6f0518f2fca892733dea85d87c33fcb65e83;hpb=55b8f7b6a738adb4dc9833233fc6111f3cd56969 diff --git a/sbr/path.c b/sbr/path.c index 7475fa0..7ef83ea 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -90,7 +90,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 +99,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); }