Standards-Version: 3.9.6 (no changes)
[ckermit.git] / ckuus4.c
index 3e52fee..defa68d 100644 (file)
--- a/ckuus4.c
+++ b/ckuus4.c
@@ -1110,7 +1110,9 @@ struct keytab fnctab[] = {              /* Function names */
 #else
     { "permissions",FN_PERM, CM_INV},   /* Permissions of file */
 #endif /* CK_PERMS */
+#ifdef SEEK_CUR
     { "pictureinfo",FN_PICTURE, 0 },   /* Picture orientation/dimensions */
+#endif /* SEEK_CUR */
     { "radix",      FN_RADIX, 0 },     /* Radix conversion */
 #ifndef NORANDOM
     { "random",     FN_RAND, 0},        /* Random number */
@@ -11833,6 +11835,7 @@ fneval(fn,argp,argn,xp) char *fn, *argp[]; int argn; char * xp; {
        goto fnend;
     }
 
+#ifdef SEEK_CUR
 /*
    \fpicture():   Get dimensions of GIF or JPG image.
    fdc June 2006
@@ -11967,6 +11970,8 @@ fneval(fn,argp,argn,xp) char *fn, *argp[]; int argn; char * xp; {
        }
        goto fnend;
     }
+#endif /* SEEK_CUR */
+
     if (cx == FN_PID) {
        int x = -1;
        if (chknum(bp[0])) {            /* Need numeric argument */
@@ -12676,7 +12681,9 @@ nvlook(s) char *s; {
 #ifndef NODIAL
       case VN_DMSG:
 #ifdef BIGBUFOK
-       ckstrncpy(vvbuf,dialmsg[dialsta],VVBUFL); /* Safe if src == NULL */
+       ckstrncpy(vvbuf,
+              ((dialsta < 0) ? "(none)" : dialmsg[dialsta]),
+              VVBUFL); /* Safe if src == NULL */
 #endif /* BIGBUFOK */
        return((char *)vvbuf);
 #endif /* NODIAL */