openbsd-ports/comms/scmxx/patches/patch-src_pinfile_c

22 lines
738 B
Plaintext

$OpenBSD: patch-src_pinfile_c,v 1.1 2005/07/26 17:00:51 fgsch Exp $
--- src/pinfile.c.orig Wed Jun 8 14:49:17 2005
+++ src/pinfile.c Tue Jul 26 02:28:43 2005
@@ -220,7 +220,7 @@ char* pinfile_get_subdata (const char* s
mem_realloc(temp,0);
if (pin != NULL) {
//find_pinpuk() already checked it
- puk = strndup(puk,strchr(puk,';')-puk);
+ puk = strn_dup(puk,strchr(puk,';')-puk);
}
}
} else {
@@ -234,7 +234,7 @@ char* pinfile_get_subdata (const char* s
} else {
print_verbose(0,"%s\n",_("found"));
//find_pinpuk() already checked it
- pin = strndup(pin,strchr(pin,';')-pin);
+ pin = strn_dup(pin,strchr(pin,';')-pin);
mem_realloc(data,0);
if (puk == NULL) {
return pin;