From 7ae7b018ccf7760013f368fcb83aad9ecd8982a8 Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Mon, 20 Jun 2016 16:23:28 +0000 Subject: With the power of USES=dos2unix, get rid of most patches and files with CRLF. While there, run make makepatch, rename patches to use the new scheme, and various fixes. With hat: portmgr Sponsored by: Absolight --- print/panda/files/patch-utility.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'print/panda/files/patch-utility.c') diff --git a/print/panda/files/patch-utility.c b/print/panda/files/patch-utility.c index c37cb02f288e..12064c916ace 100644 --- a/print/panda/files/patch-utility.c +++ b/print/panda/files/patch-utility.c @@ -6,16 +6,16 @@ length = strlen (input); - output = panda_xmalloc ((length + 1) * sizeof (char)); + output = panda_xmalloc ((length*2 + 1) * sizeof (char)); - + // todo_mikal: not sure I like the windows version of this code for (count = 0; count < length; count++) @@ -518,11 +518,11 @@ sprintf (output[count], "%2x", input[count]); - + #else /* */ - snprintf (output[count], 1, "%2x", input[count]); + sprintf (output+count*2, "%2x", input[count]); - + #endif } -- cgit v1.2.3