X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Fcopyip.c;h=5ae52bdf53028e31dc69c217a7402a1e6842b000;hp=84f724cfa48e41e21e0b6212a08a25ed799e6a58;hb=a485ed478abbd599d8c9aab48934e7a26733ecb1;hpb=f480c03187724e54e5391ee61b810827da319a6c diff --git a/sbr/copyip.c b/sbr/copyip.c index 84f724c..5ae52bd 100644 --- a/sbr/copyip.c +++ b/sbr/copyip.c @@ -1,4 +1,3 @@ - /* * copyip.c -- copy a string array and return pointer to end * @@ -13,10 +12,9 @@ char ** copyip (char **p, char **q, int len_q) { - while (*p && --len_q > 0) - *q++ = *p++; - - *q = NULL; + while (*p && --len_q > 0) + *q++ = *p++; + *q = NULL; - return q; + return q; }