Created
April 24, 2014 05:27
-
-
Save uobikiemukot/11242537 to your computer and use it in GitHub Desktop.
mlterm-3.3.4 patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- kiklib/src/kik_str.c.orig 2014-04-24 14:08:29.656026948 +0900 | |
+++ kiklib/src/kik_str.c 2014-04-24 14:07:43.530258598 +0900 | |
@@ -130,6 +130,11 @@ | |
return strcpy( dst , src) ; | |
} | |
+char *kik_str_alloca_dup(const char *src) | |
+{ | |
+ return __kik_str_copy(alloca(strlen(src) + 1), src); | |
+} | |
+ | |
/* | |
* XXX | |
* this doesn't concern about ISO2022 sequences or so. | |
--- kiklib/src/kik_str.h.orig 2014-04-24 14:08:37.102548686 +0900 | |
+++ kiklib/src/kik_str.h 2014-04-24 14:07:43.530258598 +0900 | |
@@ -41,10 +41,11 @@ | |
char * kik_str_dup( const char * str , const char * file , int line , const char * func) ; | |
-#define kik_str_alloca_dup( src) __kik_str_copy( alloca( strlen(src) + 1) , (src) ) | |
char * __kik_str_copy( char * dst , const char * src) ; | |
+char *kik_str_alloca_dup(const char *src); | |
+ | |
size_t kik_str_tabify( u_char * dst , size_t dst_len , | |
const u_char * src , size_t src_len , size_t tab_len) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment