diff options
Diffstat (limited to 'print/panda/files/patch-utility.c')
-rw-r--r-- | print/panda/files/patch-utility.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 } |