X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fm_scratch.c;h=df635316ec95d7ac3374d55aac574560e16df292;hp=30601f14698461805981cb066fcba38820895041;hb=322f6f0518f2fca892733dea85d87c33fcb65e83;hpb=55b8f7b6a738adb4dc9833233fc6111f3cd56969 diff --git a/sbr/m_scratch.c b/sbr/m_scratch.c index 30601f1..df63531 100644 --- a/sbr/m_scratch.c +++ b/sbr/m_scratch.c @@ -33,7 +33,7 @@ m_scratch (char *file, char *template) if ((cp = r1bindex (file, '/')) == file) strncpy (buffer, tmpfil, sizeof(buffer)); else - snprintf (buffer, sizeof(buffer), "%.*s%s", cp - file, file, tmpfil); + snprintf (buffer, sizeof(buffer), "%.*s%s", (int)(cp - file), file, tmpfil); unlink (buffer); return buffer;